private XOTableContext this[XContext XContext, XOTable XOTable] { get { return _tablesContext.FirstOrDefault(p => p.Context.Equals(XContext) && p.XOTable == XOTable); } }
public XOFunction(XOTable XOTable, XOPFunction XOPFunction) { _xOTable = XOTable; _xOPFunction = XOPFunction; _params = XOPFunction.Params.Select(p => new XOFunctionParam(this, p)).ToArray(); }
public XOTableContext(XOTable XOTable, XContext XContext) { _xOTable = XOTable; _xContext = XContext; _fields = XOTable.Fields.Select(p => new XOFieldContext(this, p)).ToArray(); }
internal XORelation(XOTable XOTable, XOPRelation XOPRelation, XWPRelation XWPRelation) { _xoTable = XOTable; _xopRelation = XOPRelation; _xwpRelation = XWPRelation; }
internal XOField(XOTable XOTable, XOPField XOPField, XWPField XWPField, XSPField XSPField) { _xoTable = XOTable; _xopField = XOPField; _xwpField = XWPField; _xspField = XSPField; }
internal XOFieldCalculatorRouteRelation(XOTable TableForFill, XOField KeyFieldForFill, XOField FieldForRetrieve, string Filter) { this._tableForFill = TableForFill; this._keyFieldForFill = KeyFieldForFill; this._fieldForRetrieve = FieldForRetrieve; this._filter = Filter; }
internal XOTableContext GetTableContext(XContext XContext, XOTable XOTable) { XOTableContext tableContext = this[XContext, XOTable]; if (tableContext == null) { tableContext = new XOTableContext(XOTable, XContext); _tablesContext.Add(tableContext); } return tableContext; }
public DataAvail.XtraBindings.Calculator.IObjectCalculator GetObjectCalculator(XOTable XOTable) { return _defaultObjectCalulator; }
internal static DataAvail.Data.DataAdapter.IDataAdapter GetDataAdapter(XOTable AppItem) { return new DataAdapter(AppItem); }
internal DataAdapter( XOTable AppItem) : base(DataAvail.Data.DbContext.DbContext.CurrentContext.ObjectCreator.Connection, AppItem.IsUseDefInsertCommand ? DataAvail.Data.DbContext.DbContext.CurrentContext.ObjectCreator.CreateCommand() : null, AppItem.IsUseDefUpdateCommand ? DataAvail.Data.DbContext.DbContext.CurrentContext.ObjectCreator.CreateCommand() : null, AppItem.IsUseDefDeleteCommand ? DataAvail.Data.DbContext.DbContext.CurrentContext.ObjectCreator.CreateCommand() : null) { _appItem = AppItem; if (InsertFun != null) { if (AppItem.IsUseDefInsertCommand) { InsertFun.Initialize( this.DbContextObjectCreator.Connection, this.GetInsertCommandText(), System.Data.CommandType.Text, this.GetInsertFunctionParameters(), new FieldMappingRules(null, InsertFun.ParamCreator)); if (AppItem.IsPkAutoGenerated) InsertFun.commandExecuted += new DataAvail.Data.Function.CommandExecutedHandler(InsertFun_commandExecuted); _selectLastInsertedPkCommand = this.DbContextObjectCreator.CreateCommand(); _selectLastInsertedPkCommand.Initialize(this.DbContextObjectCreator.Connection, DataAvail.Data.DbContext.DbContext.CurrentContext.GetIdentityCommandText(AppItem.SourceUpdate), System.Data.CommandType.Text); } else { InsertFun.Initialize( this.DbContextObjectCreator.Connection, AppItem.InsertFunction.Name, System.Data.CommandType.StoredProcedure, AppItem.InsertFunction.Params, new FunctionParamMappingRules(null, InsertFun.ParamCreator)); } } if (this.UpdateFun != null) { if (AppItem.IsUseDefInsertCommand) { UpdateFun.Initialize( this.DbContextObjectCreator.Connection, this.GetUpdateCommandText(), System.Data.CommandType.Text, this.GetUpdateFunctionParameters(), new FieldMappingRules(null, UpdateFun.ParamCreator)); } else { UpdateFun.Initialize( this.DbContextObjectCreator.Connection, AppItem.UpdateFunction.Name, System.Data.CommandType.StoredProcedure, AppItem.UpdateFunction.Params, new FunctionParamMappingRules(null, UpdateFun.ParamCreator)); } } if (this.DeleteFun != null) { if (AppItem.IsUseDefDeleteCommand) { DeleteFun.Initialize( this.DbContextObjectCreator.Connection, this.GetDeleteCommandText(), System.Data.CommandType.Text, this.GetDeleteFunctionParameters(), new FieldMappingRules(null, DeleteFun.ParamCreator)); } else { DeleteFun.Initialize( this.DbContextObjectCreator.Connection, AppItem.DeleteFunction.Name, System.Data.CommandType.StoredProcedure, AppItem.DeleteFunction.Params, new FunctionParamMappingRules(null, DeleteFun.ParamCreator)); } } }
public object GetDataSource(XOTable AppItem) { return ControllerProvider.GetDataSource(AppItem); }
public DataAvail.XtraBindings.Calculator.IObjectCalculator GetObjectCalculator(XOTable AppItem) { return _objectCalculatorManager != null ? _objectCalculatorManager.GetObjectCalculator(AppItem) : new DefaultObjectCalculator(); }
public DataAvail.Data.DataAdapter.IDataAdapter GetDataAdapter(XOTable AppItem) { return DataAdapter.GetDataAdapter(AppItem); }
public object GetDataSource(XOTable AppItem) { return _dataSet.Tables[AppItem.Name]; }