您目前尚未登陆,请选择【登陆】或【注册
首页->功能源码->Linq三层模式之增删改源码>>App-Code/Linq/Staff.designer.cs>>代码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:Linq三层模式之增删改源码


当前文件路径:LinqDemo/App_Code/Linq/Staff.designer.cs 文件类型
普通视图
		            
1#pragma warning disable 1591 2//------------------------------------------------------------------------------ 3// <auto-generated> 4// 此代码由工具生成。 5// 运行库版本:2.0.50727.1433 6// 51aspx.com 16:14 2008/7/15 7// 对此文件的更改可能会导致不正确的行为,并且如果 8// 重新生成代码,这些更改将会丢失。 9// </auto-generated> 10//------------------------------------------------------------------------------ 11 12namespace Linq 13{ 14 using System.Data.Linq; 15 using System.Data.Linq.Mapping; 16 using System.Data; 17 using System.Collections.Generic; 18 using System.Reflection; 19 using System.Linq; 20 using System.Linq.Expressions; 21 using System.ComponentModel; 22 using System; 23 24 25 [System.Data.Linq.Mapping.DatabaseAttribute(Name="DutyDemo")] 26 public partial class StaffDataContext : System.Data.Linq.DataContext 27 { 28 29 private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource(); 30 31 Extensibility Method Definitions 37 38 public StaffDataContext() : 39 base(global::System.Configuration.ConfigurationManager.ConnectionStrings["DutyDemoConnectionString"].ConnectionString, mappingSource) 40 { 41 OnCreated(); 42 } 43 44 public StaffDataContext(string connection) : 45 base(connection, mappingSource) 46 { 47 OnCreated(); 48 } 49 50 public StaffDataContext(System.Data.IDbConnection connection) : 51 base(connection, mappingSource) 52 { 53 OnCreated(); 54 } 55 56 public StaffDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 57 base(connection, mappingSource) 58 { 59 OnCreated(); 60 } 61 62 public StaffDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 63 base(connection, mappingSource) 64 { 65 OnCreated(); 66 } 67 68 public System.Data.Linq.Table<DutyStaff> DutyStaff 69 { 70 get 71 { 72 return this.GetTable<DutyStaff>(); 73 } 74 } 75 } 76 77 [Table(Name="dbo.DutyStaff")] 78 public partial class DutyStaff : INotifyPropertyChanging, INotifyPropertyChanged 79 { 80 81 private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); 82 83 private int _ID; 84 85 private string _StaffName; 86 87 private int _StaffAge; 88 89 Extensibility Method Definitions 100 101 public DutyStaff() 102 { 103 OnCreated(); 104 } 105 106 [Column(Storage="_ID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)] 107 public int ID 108 { 109 get 110 { 111 return this._ID; 112 } 113 set 114 { 115 if ((this._ID != value)) 116 { 117 this.OnIDChanging(value); 118 this.SendPropertyChanging(); 119 this._ID = value; 120 this.SendPropertyChanged("ID"); 121 this.OnIDChanged(); 122 } 123 } 124 } 125 126 [Column(Storage="_StaffName", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] 127 public string StaffName 128 { 129 get 130 { 131 return this._StaffName; 132 } 133 set 134 { 135 if ((this._StaffName != value)) 136 { 137 this.OnStaffNameChanging(value); 138 this.SendPropertyChanging(); 139 this._StaffName = value; 140 this.SendPropertyChanged("StaffName"); 141 this.OnStaffNameChanged(); 142 } 143 } 144 } 145 146 [Column(Storage="_StaffAge", DbType="Int NOT NULL")] 147 public int StaffAge 148 { 149 get 150 { 151 return this._StaffAge; 152 } 153 set 154 { 155 if ((this._StaffAge != value)) 156 { 157 this.OnStaffAgeChanging(value); 158 this.SendPropertyChanging(); 159 this._StaffAge = value; 160 this.SendPropertyChanged("StaffAge"); 161 this.OnStaffAgeChanged(); 162 } 163 } 164 } 165 166 public event PropertyChangingEventHandler PropertyChanging; 167 168 public event PropertyChangedEventHandler PropertyChanged; 169 170 protected virtual void SendPropertyChanging() 171 { 172 if ((this.PropertyChanging != null)) 173 { 174 this.PropertyChanging(this, emptyChangingEventArgs); 175 } 176 } 177 178 protected virtual void SendPropertyChanged(String propertyName) 179 { 180 if ((this.PropertyChanged != null)) 181 { 182 this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); 183 } 184 } 185 } 186} 187#pragma warning restore 1591 188
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:Linq三层模式之增删改源码

- 高校教师档案管理系统项目源码

- 超越简单同学录源码

- 最简单,最适合入门学习的三层..

- MyShop网络商城源码(mvc开发)

- 通用上传源码(功能强大,界..

- 学生成绩智能管理系统源码

- Asp.net实现的彩色下拉框源码

- 淘淘网电子商务网站源码(毕..

51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号