📄 dataset1.cs
字号:
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
urlDataTable cln = ((urlDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new urlDataTable();
}
internal void InitVars() {
this.column处理 = this.Columns["处理"];
this.column跟踪开始日期 = this.Columns["跟踪开始日期"];
this.column跟踪人 = this.Columns["跟踪人"];
this.column公司名 = this.Columns["公司名"];
this.column公司网址 = this.Columns["公司网址"];
this.column关键字 = this.Columns["关键字"];
}
private void InitClass() {
this.column处理 = new DataColumn("处理", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column处理);
this.column跟踪开始日期 = new DataColumn("跟踪开始日期", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column跟踪开始日期);
this.column跟踪人 = new DataColumn("跟踪人", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column跟踪人);
this.column公司名 = new DataColumn("公司名", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column公司名);
this.column公司网址 = new DataColumn("公司网址", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column公司网址);
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.column公司网址}, true));
this.column公司网址.AllowDBNull = false;
this.column公司网址.Unique = true;
}
public urlRow NewurlRow() {
return ((urlRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new urlRow(builder);
}
protected override System.Type GetRowType() {
return typeof(urlRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.urlRowChanged != null)) {
this.urlRowChanged(this, new urlRowChangeEvent(((urlRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.urlRowChanging != null)) {
this.urlRowChanging(this, new urlRowChangeEvent(((urlRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.urlRowDeleted != null)) {
this.urlRowDeleted(this, new urlRowChangeEvent(((urlRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.urlRowDeleting != null)) {
this.urlRowDeleting(this, new urlRowChangeEvent(((urlRow)(e.Row)), e.Action));
}
}
public void RemoveurlRow(urlRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class urlRow : DataRow {
private urlDataTable tableurl;
internal urlRow(DataRowBuilder rb) :
base(rb) {
this.tableurl = ((urlDataTable)(this.Table));
}
public string 处理 {
get {
try {
return ((string)(this[this.tableurl.处理Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableurl.处理Column] = value;
}
}
public string 跟踪开始日期 {
get {
try {
return ((string)(this[this.tableurl.跟踪开始日期Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableurl.跟踪开始日期Column] = value;
}
}
public string 跟踪人 {
get {
try {
return ((string)(this[this.tableurl.跟踪人Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableurl.跟踪人Column] = value;
}
}
public string 公司名 {
get {
try {
return ((string)(this[this.tableurl.公司名Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableurl.公司名Column] = value;
}
}
public string 公司网址 {
get {
return ((string)(this[this.tableurl.公司网址Column]));
}
set {
this[this.tableurl.公司网址Column] = value;
}
}
public string 关键字 {
get {
try {
return ((string)(this[this.tableurl.关键字Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableurl.关键字Column] = value;
}
}
public bool Is处理Null() {
return this.IsNull(this.tableurl.处理Column);
}
public void Set处理Null() {
this[this.tableurl.处理Column] = System.Convert.DBNull;
}
public bool Is跟踪开始日期Null() {
return this.IsNull(this.tableurl.跟踪开始日期Column);
}
public void Set跟踪开始日期Null() {
this[this.tableurl.跟踪开始日期Column] = System.Convert.DBNull;
}
public bool Is跟踪人Null() {
return this.IsNull(this.tableurl.跟踪人Column);
}
public void Set跟踪人Null() {
this[this.tableurl.跟踪人Column] = System.Convert.DBNull;
}
public bool Is公司名Null() {
return this.IsNull(this.tableurl.公司名Column);
}
public void Set公司名Null() {
this[this.tableurl.公司名Column] = System.Convert.DBNull;
}
public bool Is关键字Null() {
return this.IsNull(this.tableurl.关键字Column);
}
public void Set关键字Null() {
this[this.tableurl.关键字Column] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class urlRowChangeEvent : EventArgs {
private urlRow eventRow;
private DataRowAction eventAction;
public urlRowChangeEvent(urlRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public urlRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -