示例#1
0
 public PagedExpression(Expression entityExpression, SpQueryArgs <TContext> args, /*TEntity entity,*/ ListItem item, bool isPrev)
 {
     Expression = entityExpression;
     Type       = Expression.Type;
     //Entity = entity;
     Item   = item;
     IsPrev = isPrev;
     Args   = args;
 }
示例#2
0
        public SpEntityQueryable(SpQueryArgs <TContext> args)
            : this(QueryParser.CreateDefault(),
#if SP2013 || SP2016
                   new SpQueryExecutor <TEntity, TContext>(args)
#else
                   new SpAsyncQueryExecutor <TEntity, TContext>(args)
#endif
                   )
        {
        }
示例#3
0
 public SpEntityEntry([NotNull] TEntity entity, [NotNull] SpQueryArgs <TContext> args)
 {
     EntityId    = entity != null ? entity.Id : 0;
     Entity      = entity;
     SpQueryArgs = args;
     _manager    = new SpQueryManager <TEntity, TContext>(args);
     Context.OnBeforeSaveChanges += Context_OnOnBeforeSaveChanges;
     Context.OnAfterSaveChanges  += Context_OnAfterSaveChanges;
     Attach();
 }
示例#4
0
 public SpEntityEntry([NotNull] TEntity entity, [NotNull] SpQueryArgs <TContext> args)
 {
     EntityId    = entity != null ? entity.Id : 0;
     Entity      = entity;
     SpQueryArgs = args;
     _manager    = new SpQueryManager <TEntity, TContext>(args);
     FetchOriginalValues();
     State = EntityState.Detached;
     Attach();
 }
示例#5
0
 public static ListItem GetListItem <TEntity, TContext>(this TEntity entity, SpQueryArgs <TContext> args)
     where TEntity : class, IListItemEntity, new()
     where TContext : class, ISpEntryDataContext
 {
     if (entity != null && entity.Id > 0 && args != null)
     {
         var  manager = new SpQueryManager <TEntity, TContext>(args);
         List list    = manager.GetList();
         if (list != null)
         {
             return(list.GetItemById(entity.Id));
         }
     }
     return(null);
 }
示例#6
0
 public WhereClauseExpressionTreeVisitor(SpQueryArgs <TContext> args) : base(args)
 {
 }
 public SpLookupIncludesExpressionVisitor(SpQueryArgs <TContext> args) : base(args)
 {
 }
示例#8
0
 internal SpGeneratorQueryModelVisitor([NotNull] SpQueryArgs <TContext> args, View spView)
 {
     _args   = args;
     _spView = spView;
 }
示例#9
0
 internal SpEntityLookupCollection(SpQueryArgs <ISpEntryDataContext> args)
 {
     SpQueryArgs = args;
 }
 public SpIsMembershipExpressionVisitor(SpQueryArgs <TContext> args) : base(args)
 {
 }
 public SpStartsWithExpressionVisitor(SpQueryArgs <TContext> args) : base(args)
 {
 }
示例#12
0
 public SpQueryManager(SpQueryArgs <TContext> args)
 {
     _args = args;
 }
 public SpContainsExpressionVisitor(SpQueryArgs <TContext> args) : base(args)
 {
 }
 public IncludeExpressionVisitor(SpQueryArgs <TContext> args) : base(args)
 {
     ViewFields = new Caml.ViewFieldsCamlElement();
 }
示例#15
0
 public GroupByExpressionVisitor(SpQueryArgs <TContext> args) : base(args)
 {
     Clause = new Caml.Clauses.CamlGroupBy();
 }
示例#16
0
 public SpConditionalExpressionVisitor(SpQueryArgs <TContext> args) : base(args)
 {
 }
示例#17
0
 public SpDateRangesOverlapExpressionVisitor(SpQueryArgs <TContext> args) : base(args)
 {
 }
示例#18
0
 public SpEntityQueryable(SpQueryArgs <ISpEntryDataContext> args)
     : base(args)
 {
 }
示例#19
0
 public PagedExpressionVisitor(SpQueryArgs <TContext> args, PagedExpression <TContext /*, TEntity*/> expression, Caml.View spView) : base(args, null)
 {
     _args       = args;
     _expression = expression;
     _spView     = spView;
 }
示例#20
0
 protected SpExpressionVisitor(SpQueryArgs <TContext> args)
 {
     SpQueryArgs = args;
 }
 public static SpEntityEntry <TEntity, TContext> GetEntry <TEntity, TContext>(this TEntity entity, SpQueryArgs <TContext> args)
     where TEntity : class, IListItemEntity
     where TContext : class, ISpEntryDataContext
 {
     return(new SpEntityEntry <TEntity, TContext>(entity, args));
 }
示例#22
0
 public SpComparisonExpressionVisitor(SpQueryArgs <TContext> args) : base(args)
 {
 }