zoukankan      html  css  js  c++  java
  • 不全

    dsTLocation定义:

    publicpartialclassdsTLocation : global::System.Data.DataSet

    {

    …………………………….

    }

     

    tLocationBindingSource定义:

    private System.Windows.Forms.BindingSource tLocationBindingSource

    this.tLocationBindingSource = new System.Windows.Forms.BindingSource(this.components);

    this.tLocationBindingSource.DataMember = "T_Location";       // DataSet中的表

    this.tLocationBindingSource.DataSource = this.dsTLocation;   //DataSet

     

    DataGridView对象选择的数据源tLocationBindingSource

    this.dataGridView1.DataSource = this.tLocationBindingSource;

     

    LocationTableAdapter定义:

    publicpartialclassT_LocationTableAdapter : global::System.ComponentModel.Component {

            privateglobal::System.Data.SqlClient.SqlDataAdapter _adapter;

            privateglobal::System.Data.SqlClient.SqlConnection _connection;

            privateglobal::System.Data.SqlClient.SqlTransaction _transaction;

            privateglobal::System.Data.SqlClient.SqlCommand[] _commandCollection;

     

     

    this.t_LocationTableAdapter.Fill(this.dsTLocation.T_Location);

    this.t_LocationTableAdapter.Update(this.dsTLocation);

  • 相关阅读:
    设置允许跨域访问
    设计模式学习笔记(1)——单例模式
    yii2 request文件简介
    YII2 添加全局自定义函数
    第2章 查询基础
    第1章 数据库和SQL
    第0章 绪论
    用户贷款风险预测—特征提取
    用户贷款风险预测—数据探索
    Python 数据分析—画图
  • 原文地址:https://www.cnblogs.com/wfy680/p/12008256.html
Copyright © 2011-2022 走看看