public billdetails(DataRow row) { // Assign default persister to instance persister _Persister = _DefaultPersister; // Assign column values to private members for (int i = 0; i < row.Table.Columns.Count; i++) { switch (row.Table.Columns[i].ColumnName.ToUpper()) { case "ID": this.id = Convert.ToInt32(row[i, DataRowVersion.Current]); break; case "BILLAMOUNT": this.billamount = (string)row[i, DataRowVersion.Current]; break; case "BILLDATE": this.billdate = (string)row[i, DataRowVersion.Current]; break; case "NOTIFICATIONMAIL": this.notificationmail = (string)row[i, DataRowVersion.Current]; break; case "BILLTYPE": this.billtype = (string)row[i, DataRowVersion.Current]; break; } } }
public billdetails() { // Assign default persister to instance persister _Persister = _DefaultPersister; }
static billdetails() { // Assign default persister _DefaultPersister = new SqlServerbilldetailsPersister(); }