Beispiel #1
0
        /// <summary>
        /// 添加信息事件
        /// </summary>
        private void button1_Click(object sender, EventArgs e)
        {
            linq = new MydatabaseDataContext(strsql);
            T_LoginInfo LoInFo = new T_LoginInfo();//创建员工信息表实体

            LoInFo.fnumber = Convert.ToInt32(this.Fnumber.Text);
            LoInFo.FNAME   = this.Fname.Text;
            LoInFo.FSEX    = Convert.ToChar(this.FSEX.Text);
            LoInFo.FTEL    = this.FTEL.Text;
            LoInFo.FADRESS = this.FADRESS.Text;
            linq.T_LoginInfo.InsertOnSubmit(LoInFo); //添加实体
            linq.SubmitChanges();                    //提交操作
            SelectInfo();
        }
Beispiel #2
0
 partial void UpdateT_LoginInfo(T_LoginInfo instance);
Beispiel #3
0
 partial void DeleteT_LoginInfo(T_LoginInfo instance);
Beispiel #4
0
 partial void InsertT_LoginInfo(T_LoginInfo instance);