public ContactsMethods BuildFromRow(DataRow row) { var returnRecord = ContactsMethods.BuildContactsMethodsFromRow(row); returnRecord = this.BuildExtraFromRow <ContactsMethods>(returnRecord, row); return(returnRecord); }
public ContactsMethods Insert(ContactsMethods record) { DataRow row = this.dataSet.ttblcontactsMethods.NewttblcontactsMethodsRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblcontactsMethods.AddttblcontactsMethodsRow((pdscontactsMethodsDataSet.ttblcontactsMethodsRow)row); this.SaveChanges(); return(this.dataSet.ttblcontactsMethods.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblcontactsMethods.Rows[0]) : null); }
public ContactsMethods GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); ContactsMethods contactsMethods = null; if (row != null) { contactsMethods = this.BuildFromRow(row); } return(contactsMethods); }
protected ContactsMethods Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblcontactsMethods.AsEnumerable().SingleOrDefault(); ContactsMethods contactsMethods = null; if (row != null) { contactsMethods = this.BuildFromRow(row); } return(contactsMethods); }
public void Delete(ContactsMethods record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblcontactsMethods.NewttblcontactsMethodsRow(); ContactsMethods.BuildMinimalRow(ref row, record); this.dataSet.ttblcontactsMethods.AddttblcontactsMethodsRow((pdscontactsMethodsDataSet.ttblcontactsMethodsRow)row); } row.Delete(); this.SaveChanges(); }
public ContactsMethods Update(ContactsMethods record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row != null) { this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.SaveChanges(); return(this.dataSet.ttblcontactsMethods.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblcontactsMethods.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, ContactsMethods record) { ContactsMethods.UpdateRowFromContactsMethods(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(ContactsMethods record) { this.repository.Delete(record); }
public ContactsMethods Update(ContactsMethods record) { return(this.repository.Update(record)); }
public ContactsMethods Insert(ContactsMethods record) { return(this.repository.Insert(record)); }
public void Delete(ContactsMethods record) { this.adapter.Delete(record); }
public ContactsMethods Update(ContactsMethods record) { return(this.adapter.Update(record)); }
public ContactsMethods Insert(ContactsMethods record) { return(this.adapter.Insert(record)); }