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