示例#1
0
 public DbCommand(
     DbContext dbContext,
     System.Data.IDbCommand dbCommand,
     DbContextData dbContextData)
 {
     _data                     = new DbCommandData();
     _data.Context             = dbContext;
     _data.ContextData         = dbContextData;
     _data.InnerCommand        = dbCommand;
     _data.Command             = this;
     _data.ExecuteQueryHandler = new ExecuteQueryHandler(_data, this);
 }
示例#2
0
 public DbContext()
 {
     ContextData = new DbContextData();
 }