Beispiel #1
0
        public Icseps BuildFromRow(DataRow row)
        {
            var returnRecord = Icseps.BuildIcsepsFromRow(row);

            returnRecord = this.BuildExtraFromRow <Icseps>(returnRecord, row);
            return(returnRecord);
        }
Beispiel #2
0
        public Icseps Insert(Icseps record)
        {
            DataRow row = this.dataSet.ttblicseps.NewttblicsepsRow();

            this.UpdateToRow(ref row, record);
            this.ExtraUpdateToRow(ref row, record);
            this.dataSet.ttblicseps.AddttblicsepsRow((pdsicsepsDataSet.ttblicsepsRow)row);
            this.SaveChanges();
            return(this.dataSet.ttblicseps.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicseps.Rows[0]) : null);
        }
Beispiel #3
0
        public Icseps GetByRowId(string rowId, string fldList)
        {
            var    row    = this.GetRowByRowId(rowId, fldList);
            Icseps icseps = null;

            if (row != null)
            {
                icseps = this.BuildFromRow(row);
            }
            return(icseps);
        }
Beispiel #4
0
        protected Icseps Fetch(string where, int batchsize, string fldList)
        {
            this.FetchWhere(where, batchsize, fldList);
            var    row    = this.dataSet.ttblicseps.AsEnumerable().SingleOrDefault();
            Icseps icseps = null;

            if (row != null)
            {
                icseps = this.BuildFromRow(row);
            }
            return(icseps);
        }
Beispiel #5
0
        public void Delete(Icseps record)
        {
            var row = this.GetRowByRowId(record.rowID, string.Empty);

            if (row == null)
            {
                row = this.dataSet.ttblicseps.NewttblicsepsRow();
                Icseps.BuildMinimalRow(ref row, record);
                this.dataSet.ttblicseps.AddttblicsepsRow((pdsicsepsDataSet.ttblicsepsRow)row);
            }
            row.Delete();
            this.SaveChanges();
        }
Beispiel #6
0
        public Icseps Update(Icseps 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.ttblicseps.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicseps.Rows[0]) : null);
            }
            ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421);
            return(null);
        }
Beispiel #7
0
 public void UpdateToRow(ref DataRow row, Icseps record)
 {
     Icseps.UpdateRowFromIcseps(ref row, record);
     this.ExtraUpdateToRow(ref row, record);
 }
Beispiel #8
0
 public void Delete(Icseps record)
 {
     this.repository.Delete(record);
 }
Beispiel #9
0
 public Icseps Update(Icseps record)
 {
     return(this.repository.Update(record));
 }
Beispiel #10
0
 public Icseps Insert(Icseps record)
 {
     return(this.repository.Insert(record));
 }
Beispiel #11
0
 public void Delete(Icseps record)
 {
     this.adapter.Delete(record);
 }
Beispiel #12
0
 public Icseps Update(Icseps record)
 {
     return(this.adapter.Update(record));
 }
Beispiel #13
0
 public Icseps Insert(Icseps record)
 {
     return(this.adapter.Insert(record));
 }