📄 dataset1.cs
字号:
public void Set名称Null() {
this[this.table提供商.名称Column] = System.Convert.DBNull;
}
public bool Is提供类别Null() {
return this.IsNull(this.table提供商.提供类别Column);
}
public void Set提供类别Null() {
this[this.table提供商.提供类别Column] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class 提供商RowChangeEvent : EventArgs {
private 提供商Row eventRow;
private DataRowAction eventAction;
public 提供商RowChangeEvent(提供商Row row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public 提供商Row Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class 管理员日志DataTable : DataTable, System.Collections.IEnumerable {
private DataColumn columnID;
private DataColumn column操作;
private DataColumn column管理员ID;
private DataColumn column时间;
internal 管理员日志DataTable() :
base("管理员日志") {
this.InitClass();
}
internal 管理员日志DataTable(DataTable table) :
base(table.TableName) {
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
}
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
this.Locale = table.Locale;
}
if ((table.Namespace != table.DataSet.Namespace)) {
this.Namespace = table.Namespace;
}
this.Prefix = table.Prefix;
this.MinimumCapacity = table.MinimumCapacity;
this.DisplayExpression = table.DisplayExpression;
}
[System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
internal DataColumn IDColumn {
get {
return this.columnID;
}
}
internal DataColumn 操作Column {
get {
return this.column操作;
}
}
internal DataColumn 管理员IDColumn {
get {
return this.column管理员ID;
}
}
internal DataColumn 时间Column {
get {
return this.column时间;
}
}
public 管理员日志Row this[int index] {
get {
return ((管理员日志Row)(this.Rows[index]));
}
}
public event 管理员日志RowChangeEventHandler 管理员日志RowChanged;
public event 管理员日志RowChangeEventHandler 管理员日志RowChanging;
public event 管理员日志RowChangeEventHandler 管理员日志RowDeleted;
public event 管理员日志RowChangeEventHandler 管理员日志RowDeleting;
public void Add管理员日志Row(管理员日志Row row) {
this.Rows.Add(row);
}
public 管理员日志Row Add管理员日志Row(string 操作, int 管理员ID, string 时间) {
管理员日志Row row管理员日志Row = ((管理员日志Row)(this.NewRow()));
row管理员日志Row.ItemArray = new object[] {
null,
操作,
管理员ID,
时间};
this.Rows.Add(row管理员日志Row);
return row管理员日志Row;
}
public 管理员日志Row FindByID(int ID) {
return ((管理员日志Row)(this.Rows.Find(new object[] {
ID})));
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
管理员日志DataTable cln = ((管理员日志DataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new 管理员日志DataTable();
}
internal void InitVars() {
this.columnID = this.Columns["ID"];
this.column操作 = this.Columns["操作"];
this.column管理员ID = this.Columns["管理员ID"];
this.column时间 = this.Columns["时间"];
}
private void InitClass() {
this.columnID = new DataColumn("ID", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnID);
this.column操作 = new DataColumn("操作", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column操作);
this.column管理员ID = new DataColumn("管理员ID", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.column管理员ID);
this.column时间 = new DataColumn("时间", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column时间);
this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
this.columnID}, true));
this.columnID.AutoIncrement = true;
this.columnID.AllowDBNull = false;
this.columnID.Unique = true;
}
public 管理员日志Row New管理员日志Row() {
return ((管理员日志Row)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new 管理员日志Row(builder);
}
protected override System.Type GetRowType() {
return typeof(管理员日志Row);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.管理员日志RowChanged != null)) {
this.管理员日志RowChanged(this, new 管理员日志RowChangeEvent(((管理员日志Row)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.管理员日志RowChanging != null)) {
this.管理员日志RowChanging(this, new 管理员日志RowChangeEvent(((管理员日志Row)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.管理员日志RowDeleted != null)) {
this.管理员日志RowDeleted(this, new 管理员日志RowChangeEvent(((管理员日志Row)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.管理员日志RowDeleting != null)) {
this.管理员日志RowDeleting(this, new 管理员日志RowChangeEvent(((管理员日志Row)(e.Row)), e.Action));
}
}
public void Remove管理员日志Row(管理员日志Row row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class 管理员日志Row : DataRow {
private 管理员日志DataTable table管理员日志;
internal 管理员日志Row(DataRowBuilder rb) :
base(rb) {
this.table管理员日志 = ((管理员日志DataTable)(this.Table));
}
public int ID {
get {
return ((int)(this[this.table管理员日志.IDColumn]));
}
set {
this[this.table管理员日志.IDColumn] = value;
}
}
public string 操作 {
get {
try {
return ((string)(this[this.table管理员日志.操作Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.table管理员日志.操作Column] = value;
}
}
public int 管理员ID {
get {
try {
return ((int)(this[this.table管理员日志.管理员IDColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.table管理员日志.管理员IDColumn] = value;
}
}
public string 时间 {
get {
try {
return ((string)(this[this.table管理员日志.时间Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.table管理员日志.时间Column] = value;
}
}
public bool Is操作Null() {
return this.IsNull(this.table管理员日志.操作Column);
}
public void Set操作Null() {
this[this.table管理员日志.操作Column] = System.Convert.DBNull;
}
public bool Is管理员IDNull() {
return this.IsNull(this.table管理员日志.管理员IDColumn);
}
public void Set管理员IDNull() {
this[this.table管理员日志.管理员IDColumn] = System.Convert.DBNull;
}
public bool Is时间Null() {
return this.IsNull(this.table管理员日志.时间Column);
}
public void Set时间Null() {
this[this.table管理员日志.时间Column] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class 管理员日志RowChangeEvent : EventArgs {
private 管理员日志Row eventRow;
private DataRowAction eventAction;
public 管理员日志RowChangeEvent(管理员日志Row row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public 管理员日志Row Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -