Example #1
0
        public Oeai BuildFromRow(DataRow row)
        {
            var returnRecord = Oeai.BuildOeaiFromRow(row);

            returnRecord = this.BuildExtraFromRow <Oeai>(returnRecord, row);
            return(returnRecord);
        }
Example #2
0
        public Oeai Insert(Oeai record)
        {
            DataRow row = this.dataSet.ttbloeai.NewttbloeaiRow();

            this.UpdateToRow(ref row, record);
            this.ExtraUpdateToRow(ref row, record);
            this.dataSet.ttbloeai.AddttbloeaiRow((pdsoeaiDataSet.ttbloeaiRow)row);
            this.SaveChanges();
            return(this.dataSet.ttbloeai.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbloeai.Rows[0]) : null);
        }
Example #3
0
        public Oeai GetByRowId(string rowId, string fldList)
        {
            var  row  = this.GetRowByRowId(rowId, fldList);
            Oeai oeai = null;

            if (row != null)
            {
                oeai = this.BuildFromRow(row);
            }
            return(oeai);
        }
Example #4
0
        protected Oeai Fetch(string where, int batchsize, string fldList)
        {
            this.FetchWhere(where, batchsize, fldList);
            var  row  = this.dataSet.ttbloeai.AsEnumerable().SingleOrDefault();
            Oeai oeai = null;

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

            if (row == null)
            {
                row = this.dataSet.ttbloeai.NewttbloeaiRow();
                Oeai.BuildMinimalRow(ref row, record);
                this.dataSet.ttbloeai.AddttbloeaiRow((pdsoeaiDataSet.ttbloeaiRow)row);
            }
            row.Delete();
            this.SaveChanges();
        }
Example #6
0
        public Oeai Update(Oeai 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.ttbloeai.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbloeai.Rows[0]) : null);
            }
            ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421);
            return(null);
        }
Example #7
0
 public Oeai Insert(Oeai record)
 {
     return(this.repository.Insert(record));
 }
Example #8
0
 public void Delete(Oeai record)
 {
     this.repository.Delete(record);
 }
Example #9
0
 public Oeai Update(Oeai record)
 {
     return(this.repository.Update(record));
 }
Example #10
0
 public void UpdateToRow(ref DataRow row, Oeai record)
 {
     Oeai.UpdateRowFromOeai(ref row, record);
     this.ExtraUpdateToRow(ref row, record);
 }
Example #11
0
 public void Delete(Oeai record)
 {
     this.adapter.Delete(record);
 }
Example #12
0
 public Oeai Update(Oeai record)
 {
     return(this.adapter.Update(record));
 }
Example #13
0
 public Oeai Insert(Oeai record)
 {
     return(this.adapter.Insert(record));
 }