1 type derived from Shaper
System.Data.Entity (1)
System\Data\Common\Internal\Materialization\Shaper.cs (1)
1013internal sealed class Shaper<T> : Shaper
61 references to Shaper
System.Data.Entity (61)
System\Data\Common\Internal\Materialization\Coordinator.cs (8)
98internal void Initialize(Shaper shaper) 135internal abstract void ResetCollection(Shaper shaper); 142internal bool HasNextElement(Shaper shaper) 162internal abstract void ReadNextElement(Shaper shaper); 200private Action<Shaper, List<IEntityWrapper>> _handleClose; 233internal override void ResetCollection(Shaper shaper) 262internal override void ReadNextElement(Shaper shaper) 314internal void RegisterCloseHandler(Action<Shaper, List<IEntityWrapper>> closeHandler)
System\Data\Common\Internal\Materialization\CoordinatorFactory.cs (14)
29private static readonly Func<Shaper, bool> AlwaysTrue = s => true; 34private static readonly Func<Shaper, bool> AlwaysFalse = s => false; 55internal readonly Func<Shaper, bool> HasData; 60internal readonly Func<Shaper, bool> SetKeys; 65internal readonly Func<Shaper, bool> CheckKeys; 94protected CoordinatorFactory(int depth, int stateSlot, Func<Shaper, bool> hasData, Func<Shaper, bool> setKeys, Func<Shaper, bool> checkKeys, CoordinatorFactory[] nestedCoordinators, RecordStateFactory[] recordStateFactories) 172internal readonly Func<Shaper, IEntityWrapper> WrappedElement; 178internal readonly Func<Shaper, TElement> Element; 184internal readonly Func<Shaper, TElement> ElementWithErrorHandling; 189internal readonly Func<Shaper, ICollection<TElement>> InitializeCollection; 246private static Func<Shaper, bool> CompilePredicate(Expression predicate) 248Func<Shaper, bool> result;
System\Data\Common\Internal\Materialization\CoordinatorScratchpad.cs (1)
306/// objects require the <see cref="Shaper"/>, so they must be run inside of trusted code.
System\Data\Common\Internal\Materialization\RecordState.cs (2)
255internal RecordState GatherData(Shaper shaper) 286internal RecordState SetNullRecord(Shaper shaper)
System\Data\Common\Internal\Materialization\RecordStateFactory.cs (1)
51internal readonly Func<Shaper, bool> GatherData;
System\Data\Common\Internal\Materialization\Shaper.cs (4)
110public TElement Discriminate<TElement>(object[] discriminatorValues, Func<object[], EntityType> discriminate, KeyValuePair<EntityType, Func<Shaper, TElement>>[] elementDelegates) 113Func<Shaper, TElement> elementDelegate = null; 114foreach (KeyValuePair<EntityType, Func<Shaper, TElement>> typeDelegatePair in elementDelegates) 181public IEntityWrapper HandleEntityAppendOnly<TEntity>(Func<Shaper, IEntityWrapper> constructEntityDelegate, EntityKey entityKey, EntitySet entitySet)
System\Data\Common\Internal\Materialization\Translator.cs (30)
254internal static Func<Shaper, TResult> Compile<TResult>(Expression body) 256var lambda = Expression.Lambda<Func<Shaper, TResult>>(body, Shaper_Parameter); 524private Expression<Func<Shaper, T>> TypedCreateInlineDelegate<T>(Expression body) 526Expression<Func<Shaper, T>> result = Expression.Lambda<Func<Shaper, T>>(body, Shaper_Parameter); 566private static readonly MethodInfo Shaper_Discriminate = typeof(Shaper).GetMethod("Discriminate"); 567private static readonly MethodInfo Shaper_GetPropertyValueWithErrorHandling = typeof(Shaper).GetMethod("GetPropertyValueWithErrorHandling"); 568private static readonly MethodInfo Shaper_GetColumnValueWithErrorHandling = typeof(Shaper).GetMethod("GetColumnValueWithErrorHandling"); 569private static readonly MethodInfo Shaper_GetGeographyColumnValue = typeof(Shaper).GetMethod("GetGeographyColumnValue"); 570private static readonly MethodInfo Shaper_GetGeometryColumnValue = typeof(Shaper).GetMethod("GetGeometryColumnValue"); 571private static readonly MethodInfo Shaper_GetSpatialColumnValueWithErrorHandling = typeof(Shaper).GetMethod("GetSpatialColumnValueWithErrorHandling"); 572private static readonly MethodInfo Shaper_GetSpatialPropertyValueWithErrorHandling = typeof(Shaper).GetMethod("GetSpatialPropertyValueWithErrorHandling"); 573private static readonly MethodInfo Shaper_HandleEntity = typeof(Shaper).GetMethod("HandleEntity"); 574private static readonly MethodInfo Shaper_HandleEntityAppendOnly = typeof(Shaper).GetMethod("HandleEntityAppendOnly"); 575private static readonly MethodInfo Shaper_HandleEntityNoTracking = typeof(Shaper).GetMethod("HandleEntityNoTracking"); 576private static readonly MethodInfo Shaper_HandleFullSpanCollection = typeof(Shaper).GetMethod("HandleFullSpanCollection"); 577private static readonly MethodInfo Shaper_HandleFullSpanElement = typeof(Shaper).GetMethod("HandleFullSpanElement"); 578private static readonly MethodInfo Shaper_HandleIEntityWithKey = typeof(Shaper).GetMethod("HandleIEntityWithKey"); 579private static readonly MethodInfo Shaper_HandleRelationshipSpan = typeof(Shaper).GetMethod("HandleRelationshipSpan"); 580private static readonly MethodInfo Shaper_SetColumnValue = typeof(Shaper).GetMethod("SetColumnValue"); 581private static readonly MethodInfo Shaper_SetEntityRecordInfo = typeof(Shaper).GetMethod("SetEntityRecordInfo"); 582private static readonly MethodInfo Shaper_SetState = typeof(Shaper).GetMethod("SetState"); 583private static readonly MethodInfo Shaper_SetStatePassthrough = typeof(Shaper).GetMethod("SetStatePassthrough"); 614internal static readonly ParameterExpression Shaper_Parameter = Expression.Parameter(typeof(Shaper), "shaper"); 617internal static readonly Expression Shaper_Reader = Expression.Field(Shaper_Parameter, typeof(Shaper).GetField("Reader")); 618private static readonly Expression Shaper_Workspace = Expression.Field(Shaper_Parameter, typeof(Shaper).GetField("Workspace")); 619private static readonly Expression Shaper_State = Expression.Field(Shaper_Parameter, typeof(Shaper).GetField("State")); 620private static readonly Expression Shaper_Context = Expression.Field(Shaper_Parameter, typeof(Shaper).GetField("Context")); 1503Type typeDelegatePairType = typeof(KeyValuePair<EntityType, Func<Shaper, TElement>>); 1504ConstructorInfo typeDelegatePairConstructor = typeDelegatePairType.GetConstructor(new Type[] { typeof(EntityType), typeof(Func<Shaper, TElement>) });
System\Data\Objects\ELinq\InitializerFacet.cs (1)
491public static EntityCollection<T> CreateEntityCollection<T>(Shaper state, IEntityWrapper wrappedOwner, Coordinator<T> coordinator, string relationshipName, string targetRoleName)