Esempio n. 1
0
		internal AutoMapper(DbCommandData dbCommandData, Type itemType)
		{
			_dbCommandData = dbCommandData;
			_reader = dbCommandData.Reader.InnerReader;
			_properties = ReflectionHelper.GetProperties(itemType);
			_fields = DataReaderHelper.GetDataReaderFields(_reader);
		}
Esempio n. 2
0
		public DbCommand(
			DbContext dbContext,
			System.Data.IDbCommand innerCommand)
		{
			Data = new DbCommandData(dbContext, innerCommand);
			Data.ExecuteQueryHandler = new ExecuteQueryHandler(this);
		}
 public QueryDataTableHandler(DbCommandData data)
 {
     _data = data;
 }
Esempio n. 4
0
 public void OnCommandExecuting(DbCommandData data)
 {
 }
Esempio n. 5
0
 public QueryScalarHandler(DbCommandData data)
 {
     dbCommandData_0 = data;
 }
Esempio n. 6
0
 public DbCommand(DbContext dbContext, System.Data.IDbCommand innerCommand)
 {
     Data = new DbCommandData(dbContext, innerCommand);
     Data.ExecuteQueryHandler = new ExecuteQueryHandler(this);
 }
Esempio n. 7
0
 public QueryCustomEntityHandler(DbCommandData data)
 {
     _data       = data;
     _autoMapper = new AutoMapper(_data, typeof(TEntity));
 }
Esempio n. 8
0
 public QueryDynamicHandler(DbCommandData data)
 {
     _data       = data;
     _autoMapper = new DynamicTypeAutoMapper(_data.Reader.InnerReader);
 }
Esempio n. 9
0
 internal AutoMapper(DbCommandData dbCommandData)
 {
     _dbCommandData = dbCommandData;
 }
Esempio n. 10
0
 public QueryDynamicHandler(DbCommandData data)
 {
     dbCommandData_0         = data;
     dynamicTypeAutoMapper_0 = new DynamicTypeAutoMapper(dbCommandData_0.Reader.InnerReader);
 }
Esempio n. 11
0
        public T Execute <T>(DbCommandData data)
        {
            object recordsAffected = data.InnerCommand.ExecuteNonQuery();

            return((T)recordsAffected);
        }