コード例 #1
0
        public Vaes BuildFromRow(DataRow row)
        {
            var returnRecord = Vaes.BuildVaesFromRow(row);

            returnRecord = this.BuildExtraFromRow <Vaes>(returnRecord, row);
            return(returnRecord);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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();
        }
コード例 #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);
        }
コード例 #7
0
 public Vaes Insert(Vaes record)
 {
     return(this.adapter.Insert(record));
 }
コード例 #8
0
 public void Delete(Vaes record)
 {
     this.adapter.Delete(record);
 }
コード例 #9
0
 public Vaes Update(Vaes record)
 {
     return(this.adapter.Update(record));
 }
コード例 #10
0
 public void UpdateToRow(ref DataRow row, Vaes record)
 {
     Vaes.UpdateRowFromVaes(ref row, record);
     this.ExtraUpdateToRow(ref row, record);
 }
コード例 #11
0
 public void Delete(Vaes record)
 {
     this.repository.Delete(record);
 }
コード例 #12
0
 public Vaes Update(Vaes record)
 {
     return(this.repository.Update(record));
 }
コード例 #13
0
 public Vaes Insert(Vaes record)
 {
     return(this.repository.Insert(record));
 }