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

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

            this.UpdateToRow(ref row, record);
            this.ExtraUpdateToRow(ref row, record);
            this.dataSet.ttbledsv.AddttbledsvRow((pdsedsvDataSet.ttbledsvRow)row);
            this.SaveChanges();
            return(this.dataSet.ttbledsv.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbledsv.Rows[0]) : null);
        }
Beispiel #3
0
        public Edsv GetByRowId(string rowId, string fldList)
        {
            var  row  = this.GetRowByRowId(rowId, fldList);
            Edsv edsv = null;

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

            if (row != null)
            {
                edsv = this.BuildFromRow(row);
            }
            return(edsv);
        }
Beispiel #5
0
        private void DeleteUseRowID(Edsv record)
        {
            var row = this.GetRowByRowId(record.rowID, string.Empty);

            if (row == null)
            {
                row = this.dataSet.ttbledsv.NewttbledsvRow();
                Edsv.BuildMinimalRow(ref row, record);
                this.dataSet.ttbledsv.AddttbledsvRow((pdsedsvDataSet.ttbledsvRow)row);
            }
            row.Delete();
            this.SaveChanges();
        }
Beispiel #6
0
        public Edsv Update(Edsv record)
        {
            var row = this.GetRowByRowpointer(record.rowpointer, string.Empty);

            if (row != null)
            {
                this.UpdateToRow(ref row, record);
                this.ExtraUpdateToRow(ref row, record);
                this.SaveChanges();
                return(this.dataSet.ttbledsv.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbledsv.Rows[0]) : null);
            }
            ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421);
            return(null);
        }
Beispiel #7
0
 public void Delete(Edsv record)
 {
     this.repository.Delete(record);
 }
Beispiel #8
0
 public Edsv Update(Edsv record)
 {
     return(this.repository.Update(record));
 }
Beispiel #9
0
 public Edsv Insert(Edsv record)
 {
     return(this.repository.Insert(record));
 }
Beispiel #10
0
 public void UpdateToRow(ref DataRow row, Edsv record)
 {
     Edsv.UpdateRowFromEdsv(ref row, record);
     this.ExtraUpdateToRow(ref row, record);
 }
Beispiel #11
0
 public Edsv Update(Edsv record)
 {
     return(this.adapter.Update(record));
 }
Beispiel #12
0
 public Edsv Insert(Edsv record)
 {
     return(this.adapter.Insert(record));
 }
Beispiel #13
0
 public void Delete(Edsv record)
 {
     this.adapter.Delete(record);
 }