21 references to LightweightCodeGenerator
System.Data.Entity (21)
System\Data\Common\Internal\Materialization\Shaper.cs (1)
483
relatedEnd =
LightweightCodeGenerator
.GetRelatedEnd(wrappedEntity.RelationshipManager, sourceEnd, targetEnd, null);
System\Data\Common\Internal\Materialization\Translator.cs (6)
298
LightweightCodeGenerator
.MemberAccessReflectionPermission.Demand();
313
if (!
LightweightCodeGenerator
.HasMemberAccessReflectionPermission())
436
result =
LightweightCodeGenerator
.GetConstructorForType(type);
439
if (!
LightweightCodeGenerator
.IsPublic(result))
1366
LightweightCodeGenerator
.ValidateSetterProperty(edmProperty.EntityDeclaringType, edmProperty.PropertySetterHandle, out propertyAccessor, out propertyType);
1369
if (!
LightweightCodeGenerator
.IsPublic(propertyAccessor))
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (2)
444
gen.Emit(OpCodes.Ldsfld, typeof(
LightweightCodeGenerator
).GetField("MemberAccessReflectionPermission", BindingFlags.Static | BindingFlags.NonPublic));
475
MethodInfo genericCreateRelatedEndMethod = typeof(
LightweightCodeGenerator
).GetMethod("CreateGetRelatedEndMethod", BindingFlags.NonPublic | BindingFlags.Static, null, new Type[] { typeof(AssociationEndMember), typeof(AssociationEndMember), typeof(NavigationPropertyAccessor), typeof(NavigationPropertyAccessor) }, null);
System\Data\Objects\DataClasses\RelationshipManager.cs (1)
506
result =
LightweightCodeGenerator
.GetRelatedEnd(this, sourceEnd, targetEnd, existingRelatedEnd);
System\Data\Objects\FieldDescriptor.cs (2)
147
propertyValue =
LightweightCodeGenerator
.GetValue(_property, item);
166
LightweightCodeGenerator
.SetValue(_property, item, value);
System\Data\Objects\Internal\ComplexTypeMaterializer.cs (3)
145
ClrType =
LightweightCodeGenerator
.GetConstructorDelegateForType((ClrComplexType)mapping.ClrType);
175
?
LightweightCodeGenerator
.GetGetterDelegateForProperty(property) : null;
176
this.ClrProperty =
LightweightCodeGenerator
.GetSetterDelegateForProperty(property);
System\Data\Objects\Internal\EntityProxyFactory.cs (2)
350
Action<object, object> nonProxySetter =
LightweightCodeGenerator
.CreateNavigationPropertySetter(declaringType, propertyInfo);
1160
DynamicMethod initializeEntityCollections =
LightweightCodeGenerator
.CreateDynamicMethod(proxyType.Name + "_InitializeEntityCollections", typeof(IEntityWrapper), new Type[] { typeof(IEntityWrapper) });
System\Data\Objects\Internal\EntityProxyTypeInfo.cs (1)
133
_createObject =
LightweightCodeGenerator
.CreateConstructor(proxyType) as Func<object>;
System\Data\Objects\ObjectContext.cs (1)
3000
Func<object> ctor =
LightweightCodeGenerator
.GetConstructorDelegateForType(entityType) as Func<object>;
System\Data\Objects\ObjectStateManagerMetadata.cs (2)
123
object dataObject =
LightweightCodeGenerator
.GetValue(_clrProperty, userObject);
137
LightweightCodeGenerator
.SetValue(_clrProperty, userObject, value);