public static IQueryLite CreateQueryLite(this DataService dataService, Type entityType, string projectionName)
        {
            IProjectedQueryLite queryLite = (IProjectedQueryLite)queryLiteFactoriesCache.GetItem(entityType)();

            queryLite.ProjectionName = projectionName;
            queryLite.DataService    = dataService;
            return(queryLite);
        }
示例#2
0
 private static Func <object, object, bool> GetIsModifiedFunction(this Type entityType)
 {
     return(isModifiedFunctionCache.GetItem(entityType));
 }
示例#3
0
 public static Func <object> GetDynamicActivator(this Type type)
 {
     return(dynamicActivatorsCache.GetItem(type));
 }