Exemple #1
0
        public Vaes BuildFromRow(DataRow row)
        {
            var returnRecord = Vaes.BuildVaesFromRow(row);

            returnRecord = this.BuildExtraFromRow <Vaes>(returnRecord, row);
            return(returnRecord);
        }
Exemple #2
0
        public Vaes Insert(Vaes record)
        {
            DataRow row = this.dataSet.ttblvaes.NewttblvaesRow();

            this.UpdateToRow(ref row, record);
            this.ExtraUpdateToRow(ref row, record);
            this.dataSet.ttblvaes.AddttblvaesRow((pdsvaesDataSet.ttblvaesRow)row);
            this.SaveChanges();
            return(this.dataSet.ttblvaes.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblvaes.Rows[0]) : null);
        }
Exemple #3
0
        public Vaes GetByRowId(string rowId, bool fillMode, string fldList)
        {
            var  row  = this.GetRowByRowId(rowId, fillMode, fldList);
            Vaes vaes = null;

            if (row != null)
            {
                vaes = this.BuildFromRow(row);
            }
            return(vaes);
        }
Exemple #4
0
        protected Vaes Fetch(string where, bool fillMode, int batchsize, string fldList)
        {
            this.FetchWhere(where, fillMode, batchsize, fldList);
            var  row  = this.dataSet.ttblvaes.AsEnumerable().SingleOrDefault();
            Vaes vaes = null;

            if (row != null)
            {
                vaes = this.BuildFromRow(row);
            }
            return(vaes);
        }
Exemple #5
0
        private void DeleteUseRowID(Vaes record)
        {
            var row = this.GetRowByRowId(record.rowID, false, string.Empty);

            if (row == null)
            {
                row = this.dataSet.ttblvaes.NewttblvaesRow();
                Vaes.BuildMinimalRow(ref row, record);
                this.dataSet.ttblvaes.AddttblvaesRow((pdsvaesDataSet.ttblvaesRow)row);
            }
            row.Delete();
            this.SaveChanges();
        }
Exemple #6
0
        public Vaes Update(Vaes record)
        {
            var row = this.GetRowByRowpointer(record.rowpointer, false, string.Empty);

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