📄 inteliimdataset.cs
字号:
this.columnContactInfo = this.Columns["ContactInfo"];
this.columnAdvancedInfo = this.Columns["AdvancedInfo"];
this.columnJobInfo = this.Columns["JobInfo"];
this.columnPermission = this.Columns["Permission"];
}
private void InitClass() {
this.columnId = new DataColumn("Id", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnId);
this.columnNickName = new DataColumn("NickName", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnNickName);
this.columnPassword = new DataColumn("Password", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnPassword);
this.columnNo = new DataColumn("No", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnNo);
this.columnGeneralInfo = new DataColumn("GeneralInfo", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnGeneralInfo);
this.columnContactInfo = new DataColumn("ContactInfo", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnContactInfo);
this.columnAdvancedInfo = new DataColumn("AdvancedInfo", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnAdvancedInfo);
this.columnJobInfo = new DataColumn("JobInfo", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnJobInfo);
this.columnPermission = new DataColumn("Permission", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnPermission);
this.columnNo.AutoIncrement = true;
}
public UserRow NewUserRow() {
return ((UserRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new UserRow(builder);
}
protected override System.Type GetRowType() {
return typeof(UserRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.UserRowChanged != null)) {
this.UserRowChanged(this, new UserRowChangeEvent(((UserRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.UserRowChanging != null)) {
this.UserRowChanging(this, new UserRowChangeEvent(((UserRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.UserRowDeleted != null)) {
this.UserRowDeleted(this, new UserRowChangeEvent(((UserRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.UserRowDeleting != null)) {
this.UserRowDeleting(this, new UserRowChangeEvent(((UserRow)(e.Row)), e.Action));
}
}
public void RemoveUserRow(UserRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class UserRow : DataRow {
private UserDataTable tableUser;
internal UserRow(DataRowBuilder rb) :
base(rb) {
this.tableUser = ((UserDataTable)(this.Table));
}
public string Id {
get {
try {
return ((string)(this[this.tableUser.IdColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableUser.IdColumn] = value;
}
}
public string NickName {
get {
try {
return ((string)(this[this.tableUser.NickNameColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableUser.NickNameColumn] = value;
}
}
public string Password {
get {
try {
return ((string)(this[this.tableUser.PasswordColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableUser.PasswordColumn] = value;
}
}
public int No {
get {
try {
return ((int)(this[this.tableUser.NoColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableUser.NoColumn] = value;
}
}
public string GeneralInfo {
get {
try {
return ((string)(this[this.tableUser.GeneralInfoColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableUser.GeneralInfoColumn] = value;
}
}
public string ContactInfo {
get {
try {
return ((string)(this[this.tableUser.ContactInfoColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableUser.ContactInfoColumn] = value;
}
}
public string AdvancedInfo {
get {
try {
return ((string)(this[this.tableUser.AdvancedInfoColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableUser.AdvancedInfoColumn] = value;
}
}
public string JobInfo {
get {
try {
return ((string)(this[this.tableUser.JobInfoColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableUser.JobInfoColumn] = value;
}
}
public string Permission {
get {
try {
return ((string)(this[this.tableUser.PermissionColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableUser.PermissionColumn] = value;
}
}
public bool IsIdNull() {
return this.IsNull(this.tableUser.IdColumn);
}
public void SetIdNull() {
this[this.tableUser.IdColumn] = System.Convert.DBNull;
}
public bool IsNickNameNull() {
return this.IsNull(this.tableUser.NickNameColumn);
}
public void SetNickNameNull() {
this[this.tableUser.NickNameColumn] = System.Convert.DBNull;
}
public bool IsPasswordNull() {
return this.IsNull(this.tableUser.PasswordColumn);
}
public void SetPasswordNull() {
this[this.tableUser.PasswordColumn] = System.Convert.DBNull;
}
public bool IsNoNull() {
return this.IsNull(this.tableUser.NoColumn);
}
public void SetNoNull() {
this[this.tableUser.NoColumn] = System.Convert.DBNull;
}
public bool IsGeneralInfoNull() {
return this.IsNull(this.tableUser.GeneralInfoColumn);
}
public void SetGeneralInfoNull() {
this[this.tableUser.GeneralInfoColumn] = System.Convert.DBNull;
}
public bool IsContactInfoNull() {
return this.IsNull(this.tableUser.ContactInfoColumn);
}
public void SetContactInfoNull() {
this[this.tableUser.ContactInfoColumn] = System.Convert.DBNull;
}
public bool IsAdvancedInfoNull() {
return this.IsNull(this.tableUser.AdvancedInfoColumn);
}
public void SetAdvancedInfoNull() {
this[this.tableUser.AdvancedInfoColumn] = System.Convert.DBNull;
}
public bool IsJobInfoNull() {
return this.IsNull(this.tableUser.JobInfoColumn);
}
public void SetJobInfoNull() {
this[this.tableUser.JobInfoColumn] = System.Convert.DBNull;
}
public bool IsPermissionNull() {
return this.IsNull(this.tableUser.PermissionColumn);
}
public void SetPermissionNull() {
this[this.tableUser.PermissionColumn] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class UserRowChangeEvent : EventArgs {
private UserRow eventRow;
private DataRowAction eventAction;
public UserRowChangeEvent(UserRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public UserRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class MessageDataTable : DataTable, System.Collections.IEnumerable {
private DataColumn columnContent;
private DataColumn columnId;
private DataColumn columnTo;
private DataColumn columnViewed;
internal MessageDataTable() :
base("Message") {
this.InitClass();
}
internal MessageDataTable(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 ContentColumn {
get {
return this.columnContent;
}
}
internal DataColumn IdColumn {
get {
return this.columnId;
}
}
internal DataColumn ToColumn {
get {
return this.columnTo;
}
}
internal DataColumn ViewedColumn {
get {
return this.columnViewed;
}
}
public MessageRow this[int index] {
get {
return ((MessageRow)(this.Rows[index]));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -