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; }
public SpEntityQueryable(SpQueryArgs <TContext> args) : this(QueryParser.CreateDefault(), #if SP2013 || SP2016 new SpQueryExecutor <TEntity, TContext>(args) #else new SpAsyncQueryExecutor <TEntity, TContext>(args) #endif ) { }
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(); }
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(); }
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); }
public WhereClauseExpressionTreeVisitor(SpQueryArgs <TContext> args) : base(args) { }
public SpLookupIncludesExpressionVisitor(SpQueryArgs <TContext> args) : base(args) { }
internal SpGeneratorQueryModelVisitor([NotNull] SpQueryArgs <TContext> args, View spView) { _args = args; _spView = spView; }
internal SpEntityLookupCollection(SpQueryArgs <ISpEntryDataContext> args) { SpQueryArgs = args; }
public SpIsMembershipExpressionVisitor(SpQueryArgs <TContext> args) : base(args) { }
public SpStartsWithExpressionVisitor(SpQueryArgs <TContext> args) : base(args) { }
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(); }
public GroupByExpressionVisitor(SpQueryArgs <TContext> args) : base(args) { Clause = new Caml.Clauses.CamlGroupBy(); }
public SpConditionalExpressionVisitor(SpQueryArgs <TContext> args) : base(args) { }
public SpDateRangesOverlapExpressionVisitor(SpQueryArgs <TContext> args) : base(args) { }
public SpEntityQueryable(SpQueryArgs <ISpEntryDataContext> args) : base(args) { }
public PagedExpressionVisitor(SpQueryArgs <TContext> args, PagedExpression <TContext /*, TEntity*/> expression, Caml.View spView) : base(args, null) { _args = args; _expression = expression; _spView = spView; }
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)); }
public SpComparisonExpressionVisitor(SpQueryArgs <TContext> args) : base(args) { }