public Authsecure BuildFromRow(DataRow row) { var returnRecord = Authsecure.BuildAuthsecureFromRow(row); returnRecord = this.BuildExtraFromRow <Authsecure>(returnRecord, row); return(returnRecord); }
public Authsecure Insert(Authsecure record) { DataRow row = this.dataSet.ttblauthsecure.NewttblauthsecureRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblauthsecure.AddttblauthsecureRow((pdsauthsecureDataSet.ttblauthsecureRow)row); this.SaveChanges(); return(this.dataSet.ttblauthsecure.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblauthsecure.Rows[0]) : null); }
public Authsecure GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Authsecure authsecure = null; if (row != null) { authsecure = this.BuildFromRow(row); } return(authsecure); }
protected Authsecure Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblauthsecure.AsEnumerable().SingleOrDefault(); Authsecure authsecure = null; if (row != null) { authsecure = this.BuildFromRow(row); } return(authsecure); }
public void Delete(Authsecure record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblauthsecure.NewttblauthsecureRow(); Authsecure.BuildMinimalRow(ref row, record); this.dataSet.ttblauthsecure.AddttblauthsecureRow((pdsauthsecureDataSet.ttblauthsecureRow)row); } row.Delete(); this.SaveChanges(); }
public Authsecure Update(Authsecure 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.ttblauthsecure.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblauthsecure.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Authsecure record) { this.adapter.Delete(record); }
public Authsecure Update(Authsecure record) { return(this.adapter.Update(record)); }
public Authsecure Insert(Authsecure record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Authsecure record) { Authsecure.UpdateRowFromAuthsecure(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Authsecure record) { this.repository.Delete(record); }
public Authsecure Update(Authsecure record) { return(this.repository.Update(record)); }
public Authsecure Insert(Authsecure record) { return(this.repository.Insert(record)); }