Example #1
0
 internal EntityCommand(
     string statement,
     DbInterceptionContext context,
     EntityCommand.EntityDataReaderFactory factory)
     : this(context, factory)
 {
     this._esqlCommandText = statement;
 }
Example #2
0
 internal EntityCommand(
     string statement,
     EntityConnection connection,
     EntityCommand.EntityDataReaderFactory factory)
     : this(statement, new DbInterceptionContext(), factory)
 {
     this._connection = connection;
 }
Example #3
0
 internal EntityCommand(
     EntityConnection connection,
     EntityCommandDefinition entityCommandDefinition,
     DbInterceptionContext context,
     EntityCommand.EntityDataReaderFactory factory = null)
     : this(entityCommandDefinition, context, factory)
 {
     this._connection = connection;
 }
Example #4
0
 internal EntityCommand(
     string statement,
     EntityConnection connection,
     EntityTransaction transaction,
     EntityCommand.EntityDataReaderFactory factory)
     : this(statement, connection, factory)
 {
     this._transaction = transaction;
 }
Example #5
0
 internal EntityCommand(
     DbInterceptionContext interceptionContext,
     EntityCommand.EntityDataReaderFactory factory)
 {
     this._designTimeVisible       = true;
     this._commandType             = CommandType.Text;
     this._updatedRowSource        = UpdateRowSource.Both;
     this._parameters              = new EntityParameterCollection();
     this._interceptionContext     = interceptionContext;
     this._enableQueryPlanCaching  = true;
     this._entityDataReaderFactory = factory ?? new EntityCommand.EntityDataReaderFactory();
 }
Example #6
0
 internal EntityCommand(
     EntityCommandDefinition commandDefinition,
     DbInterceptionContext context,
     EntityCommand.EntityDataReaderFactory factory = null)
     : this(context, factory)
 {
     this._commandDefinition = commandDefinition;
     this._parameters        = new EntityParameterCollection();
     foreach (EntityParameter parameter in commandDefinition.Parameters)
     {
         this._parameters.Add(parameter.Clone());
     }
     this._parameters.ResetIsDirty();
     this._isCommandDefinitionBased = true;
 }