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

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

            this.UpdateToRow(ref row, record);
            this.ExtraUpdateToRow(ref row, record);
            this.dataSet.ttbloeelextra.AddttbloeelextraRow((pdsoeelextraDataSet.ttbloeelextraRow)row);
            this.SaveChanges();
            return(this.dataSet.ttbloeelextra.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbloeelextra.Rows[0]) : null);
        }
Beispiel #3
0
        public Oeelextra GetByRowId(string rowId, string fldList)
        {
            var       row       = this.GetRowByRowId(rowId, fldList);
            Oeelextra oeelextra = null;

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

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

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