📄 titlesds.cs
字号:
this.Columns.Add(this.columnpub_id);
this.columnprice = new DataColumn("price", typeof(System.Decimal), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnprice);
this.columnadvance = new DataColumn("advance", typeof(System.Decimal), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnadvance);
this.columnroyalty = new DataColumn("royalty", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnroyalty);
this.columnytd_sales = new DataColumn("ytd_sales", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnytd_sales);
this.columnnotes = new DataColumn("notes", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnnotes);
this.columnpubdate = new DataColumn("pubdate", typeof(System.DateTime), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnpubdate);
}
public TitlesRow NewTitlesRow() {
return ((TitlesRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new TitlesRow(builder);
}
protected override System.Type GetRowType() {
return typeof(TitlesRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.TitlesRowChanged != null)) {
this.TitlesRowChanged(this, new TitlesRowChangeEvent(((TitlesRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.TitlesRowChanging != null)) {
this.TitlesRowChanging(this, new TitlesRowChangeEvent(((TitlesRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.TitlesRowDeleted != null)) {
this.TitlesRowDeleted(this, new TitlesRowChangeEvent(((TitlesRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.TitlesRowDeleting != null)) {
this.TitlesRowDeleting(this, new TitlesRowChangeEvent(((TitlesRow)(e.Row)), e.Action));
}
}
public void RemoveTitlesRow(TitlesRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class TitlesRow : DataRow {
private TitlesDataTable tableTitles;
internal TitlesRow(DataRowBuilder rb) :
base(rb) {
this.tableTitles = ((TitlesDataTable)(this.Table));
}
public string title_id {
get {
try {
return ((string)(this[this.tableTitles.title_idColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("Cannot get value because it is DBNull.", e);
}
}
set {
this[this.tableTitles.title_idColumn] = value;
}
}
public string title {
get {
try {
return ((string)(this[this.tableTitles.titleColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("Cannot get value because it is DBNull.", e);
}
}
set {
this[this.tableTitles.titleColumn] = value;
}
}
public string type {
get {
try {
return ((string)(this[this.tableTitles.typeColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("Cannot get value because it is DBNull.", e);
}
}
set {
this[this.tableTitles.typeColumn] = value;
}
}
public string pub_id {
get {
try {
return ((string)(this[this.tableTitles.pub_idColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("Cannot get value because it is DBNull.", e);
}
}
set {
this[this.tableTitles.pub_idColumn] = value;
}
}
public System.Decimal price {
get {
try {
return ((System.Decimal)(this[this.tableTitles.priceColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("Cannot get value because it is DBNull.", e);
}
}
set {
this[this.tableTitles.priceColumn] = value;
}
}
public System.Decimal advance {
get {
try {
return ((System.Decimal)(this[this.tableTitles.advanceColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("Cannot get value because it is DBNull.", e);
}
}
set {
this[this.tableTitles.advanceColumn] = value;
}
}
public int royalty {
get {
try {
return ((int)(this[this.tableTitles.royaltyColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("Cannot get value because it is DBNull.", e);
}
}
set {
this[this.tableTitles.royaltyColumn] = value;
}
}
public int ytd_sales {
get {
try {
return ((int)(this[this.tableTitles.ytd_salesColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("Cannot get value because it is DBNull.", e);
}
}
set {
this[this.tableTitles.ytd_salesColumn] = value;
}
}
public string notes {
get {
try {
return ((string)(this[this.tableTitles.notesColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("Cannot get value because it is DBNull.", e);
}
}
set {
this[this.tableTitles.notesColumn] = value;
}
}
public System.DateTime pubdate {
get {
try {
return ((System.DateTime)(this[this.tableTitles.pubdateColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("Cannot get value because it is DBNull.", e);
}
}
set {
this[this.tableTitles.pubdateColumn] = value;
}
}
public bool Istitle_idNull() {
return this.IsNull(this.tableTitles.title_idColumn);
}
public void Settitle_idNull() {
this[this.tableTitles.title_idColumn] = System.Convert.DBNull;
}
public bool IstitleNull() {
return this.IsNull(this.tableTitles.titleColumn);
}
public void SettitleNull() {
this[this.tableTitles.titleColumn] = System.Convert.DBNull;
}
public bool IstypeNull() {
return this.IsNull(this.tableTitles.typeColumn);
}
public void SettypeNull() {
this[this.tableTitles.typeColumn] = System.Convert.DBNull;
}
public bool Ispub_idNull() {
return this.IsNull(this.tableTitles.pub_idColumn);
}
public void Setpub_idNull() {
this[this.tableTitles.pub_idColumn] = System.Convert.DBNull;
}
public bool IspriceNull() {
return this.IsNull(this.tableTitles.priceColumn);
}
public void SetpriceNull() {
this[this.tableTitles.priceColumn] = System.Convert.DBNull;
}
public bool IsadvanceNull() {
return this.IsNull(this.tableTitles.advanceColumn);
}
public void SetadvanceNull() {
this[this.tableTitles.advanceColumn] = System.Convert.DBNull;
}
public bool IsroyaltyNull() {
return this.IsNull(this.tableTitles.royaltyColumn);
}
public void SetroyaltyNull() {
this[this.tableTitles.royaltyColumn] = System.Convert.DBNull;
}
public bool Isytd_salesNull() {
return this.IsNull(this.tableTitles.ytd_salesColumn);
}
public void Setytd_salesNull() {
this[this.tableTitles.ytd_salesColumn] = System.Convert.DBNull;
}
public bool IsnotesNull() {
return this.IsNull(this.tableTitles.notesColumn);
}
public void SetnotesNull() {
this[this.tableTitles.notesColumn] = System.Convert.DBNull;
}
public bool IspubdateNull() {
return this.IsNull(this.tableTitles.pubdateColumn);
}
public void SetpubdateNull() {
this[this.tableTitles.pubdateColumn] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class TitlesRowChangeEvent : EventArgs {
private TitlesRow eventRow;
private DataRowAction eventAction;
public TitlesRowChangeEvent(TitlesRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public TitlesRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -