예제 #1
0
        public string InsertRecord()
        {
            this.Insert(this.Parameters, new DataSourceViewOperationCallback(this.HandleInsertCallback));
            SageCRMDataSourceView tview = (SageCRMDataSourceView)this.GetView(String.Empty);

            return(tview.RecordID);
        }
예제 #2
0
 protected override DataSourceView GetView(string viewName)
 {
     if (null == view)
     {
         view = new SageCRMDataSourceView(this, this.TableName, this.WhereClause, this.SageCRMConnection, this.SelectSQL, this.Top);
     }
     return(view);
 }
예제 #3
0
        public IDataReader SelectData()
        {
            SageCRMDataSourceView sdv = this.Open() as SageCRMDataSourceView;

            sdv.Select(DataSourceSelectArguments.Empty, this.do_nada);
            idr = new SageCRMDataViewReader(sdv.dv);
            return(idr);
        }
예제 #4
0
 protected override DataSourceView GetView(string viewName)
 {
     if (null == view)
     {
         view = new SageCRMDataSourceView(this, this.TableName, this.WhereClause, this.SageCRMConnection, this.SelectSQL, this.Top, this.NoTLS, this.Cachable, this.ColumnList,
                                          this.FWorkflow, this.FWorkflowState, this.OrderBy, this.Translate);
     }
     view.CacheKey = this.Cachekey;
     return(view);
 }
예제 #5
0
        public DataSet getDataSet()
        {
            DataSourceView tmp_dsv = this.Open();

            tmp_dsv.Select(DataSourceSelectArguments.Empty, do_nada);
            SageCRMDataSourceView s_dsv = (tmp_dsv as SageCRMDataSourceView);
            DataSet newds = new DataSet();

            newds.Tables.Add(s_dsv.data);
            return(newds);
        }
 protected override DataSourceView GetView(string viewName)
 {
     if (null == view)
     {
         view = new SageCRMDataSourceView(this, this.TableName, this.WhereClause, this.SageCRMConnection, this.SelectSQL, this.Top);
     }
     return view;
 }