示例#1
0
 public static T MapItem <T>(this IMapper <ReflectedEntityKey> mapper,
                             EntityFetchExpression fetchExpression,
                             IDataReader dataReader)
     where T : ClassEntity
 {
     return(mapper.MapItem <T>(ReflectedEntityKey.EntityKey <T>(), fetchExpression, dataReader));
 }
 public void Setup()
 {
     _conditionalExpression    = new ConditionalExpressionParser(ReflectedEntityKey.EntityKey <TestClass>());
     _entityDefinitionProvider = new ReflectionEntityDefinitionProvider();
 }
 public static EntityFetchExpression ForExpression <T>(params Expression <Func <T, bool> >[] expressions)
     where T : IEntity
 {
     return(new PropertyEntityFetchExpression(expressions, ReflectedEntityKey.EntityKey <T>()));
 }
 public static EntityFetchExpression ForFields <T>(params string[] fields) where T : IEntity
 {
     return(new StringEntityFetchExpression(fields, ReflectedEntityKey.EntityKey <T>()));
 }
 public static EntityFetchExpression AllFieldsExpression <T>() where T : IEntity
 {
     return(new AllFieldsFetchExpression(ReflectedEntityKey.EntityKey <T>()));
 }