?? dataset2.cs
字號:
internal DataColumn 現(xiàn)存量Column {
get {
return this.column現(xiàn)存量;
}
}
internal DataColumn 庫存總量Column {
get {
return this.column庫存總量;
}
}
internal DataColumn 簡介Column {
get {
return this.column簡介;
}
}
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 編號, string 書名, string 條形碼, string 類型, string 作者, string 譯者, string ISBN, string 出版社, System.Decimal 價格, int 頁碼, string 書架名稱, int 現(xiàn)存量, int 庫存總量, string 簡介, bool 是否注銷) {
圖書信息Row row圖書信息Row = ((圖書信息Row)(this.NewRow()));
row圖書信息Row.ItemArray = new object[] {
編號,
書名,
條形碼,
類型,
作者,
譯者,
ISBN,
出版社,
價格,
頁碼,
書架名稱,
現(xiàn)存量,
庫存總量,
簡介,
是否注銷};
this.Rows.Add(row圖書信息Row);
return row圖書信息Row;
}
public 圖書信息Row FindBy編號(string 編號) {
return ((圖書信息Row)(this.Rows.Find(new object[] {
編號})));
}
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.column編號 = this.Columns["編號"];
this.column書名 = this.Columns["書名"];
this.column條形碼 = this.Columns["條形碼"];
this.column類型 = this.Columns["類型"];
this.column作者 = this.Columns["作者"];
this.column譯者 = this.Columns["譯者"];
this.columnISBN = this.Columns["ISBN"];
this.column出版社 = this.Columns["出版社"];
this.column價格 = this.Columns["價格"];
this.column頁碼 = this.Columns["頁碼"];
this.column書架名稱 = this.Columns["書架名稱"];
this.column現(xiàn)存量 = this.Columns["現(xiàn)存量"];
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.columnISBN = new DataColumn("ISBN", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnISBN);
this.column出版社 = new DataColumn("出版社", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column出版社);
this.column價格 = new DataColumn("價格", typeof(System.Decimal), null, System.Data.MappingType.Element);
this.Columns.Add(this.column價格);
this.column頁碼 = new DataColumn("頁碼", typeof(int), 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現(xiàn)存量 = new DataColumn("現(xiàn)存量", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.column現(xiàn)存量);
this.column庫存總量 = new DataColumn("庫存總量", typeof(int), 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(bool), 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;
this.column是否注銷.AllowDBNull = false;
}
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 string 編號 {
get {
return ((string)(this[this.table圖書信息.編號Column]));
}
set {
this[this.table圖書信息.編號Column] = 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 string 條形碼 {
get {
try {
return ((string)(this[this.table圖書信息.條形碼Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("無法獲取值,因為它是 DBNull。", e);
}
}
set {
this[this.table圖書信息.條形碼Column] = 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 string 作者 {
get {
try {
return ((string)(this[this.table圖書信息.作者Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("無法獲取值,因為它是 DBNull。", e);
}
}
set {
this[this.table圖書信息.作者Column] = 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 string ISBN {
get {
try {
return ((string)(this[this.table圖書信息.ISBNColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("無法獲取值,因為它是 DBNull。", e);
}
}
set {
this[this.table圖書信息.ISBNColumn] = 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 System.Decimal 價格 {
get {
try {
return ((System.Decimal)(this[this.table圖書信息.價格Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("無法獲取值,因為它是 DBNull。", e);
}
}
set {
this[this.table圖書信息.價格Column] = value;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -