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