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

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

            this.UpdateToRow(ref row, record);
            this.ExtraUpdateToRow(ref row, record);
            this.dataSet.ttbltrigger_setup.Addttbltrigger_setupRow((pdstrigger_setupDataSet.ttbltrigger_setupRow)row);
            this.SaveChanges();
            return(this.dataSet.ttbltrigger_setup.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbltrigger_setup.Rows[0]) : null);
        }
Example #3
0
        public TriggerSetup GetByRowId(string rowId, string fldList)
        {
            var          row          = this.GetRowByRowId(rowId, fldList);
            TriggerSetup triggerSetup = null;

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

            if (row != null)
            {
                triggerSetup = this.BuildFromRow(row);
            }
            return(triggerSetup);
        }
Example #5
0
        public void Setup()
        {
            if (_isSetup)
            {
                return;
            }

            _isSetup = true;
            if (TriggerSetup != null)
            {
                TriggerSetup.Invoke(this);
            }
        }
Example #6
0
        public void Delete(TriggerSetup record)
        {
            var row = this.GetRowByRowId(record.rowID, string.Empty);

            if (row == null)
            {
                row = this.dataSet.ttbltrigger_setup.Newttbltrigger_setupRow();
                TriggerSetup.BuildMinimalRow(ref row, record);
                this.dataSet.ttbltrigger_setup.Addttbltrigger_setupRow((pdstrigger_setupDataSet.ttbltrigger_setupRow)row);
            }
            row.Delete();
            this.SaveChanges();
        }
Example #7
0
        public TriggerSetup Update(TriggerSetup 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.ttbltrigger_setup.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbltrigger_setup.Rows[0]) : null);
            }
            ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421);
            return(null);
        }
Example #8
0
 public void Delete(TriggerSetup record)
 {
     this.adapter.Delete(record);
 }
Example #9
0
 public TriggerSetup Update(TriggerSetup record)
 {
     return(this.adapter.Update(record));
 }
Example #10
0
 public TriggerSetup Insert(TriggerSetup record)
 {
     return(this.adapter.Insert(record));
 }
Example #11
0
 public TriggerSetup Update(TriggerSetup record)
 {
     return(this.repository.Update(record));
 }
Example #12
0
 public TriggerSetup Insert(TriggerSetup record)
 {
     return(this.repository.Insert(record));
 }
Example #13
0
 public void Delete(TriggerSetup record)
 {
     this.repository.Delete(record);
 }
Example #14
0
 public void UpdateToRow(ref DataRow row, TriggerSetup record)
 {
     TriggerSetup.UpdateRowFromTriggerSetup(ref row, record);
     this.ExtraUpdateToRow(ref row, record);
 }