49 references to Item
System.Data.Entity.Design (49)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (8)
214
if (MetadataUtil.IsPrimitiveType(emitter.
Item
.TypeUsage.EdmType) || MetadataUtil.IsEnumerationType(emitter.
Item
.TypeUsage.EdmType))
220
Debug.Assert(emitter.
Item
.Nullable == false, "An EntityKeyProperty cannot be nullable.");
225
if (!emitter.
Item
.Nullable)
234
Debug.Assert(MetadataUtil.IsComplexType(emitter.
Item
.TypeUsage.EdmType) ||
235
(MetadataUtil.IsCollectionType(emitter.
Item
.TypeUsage.EdmType)),
248
if (!MetadataUtil.IsCollectionType(emitter.
Item
.TypeUsage.EdmType))
277
emitter.Generator.AddError(Strings.InvalidAttributeSuppliedForProperty(emitter.
Item
.Name),
System\Data\EntityModel\Emitters\PropertyEmitter.cs (40)
44
MemberAttributes scope = AccessibilityFromGettersAndSetters(
Item
);
63
PropertyGeneratedEventArgs eventArgs = new PropertyGeneratedEventArgs(
Item
, FieldName, typeRef);
119
if (HasDefault(
Item
))
121
memberField.InitExpression = GetDefaultValueExpression(
Item
);
126
if (MetadataUtil.IsComplexType(
Item
.TypeUsage.EdmType))
151
CodeTypeReference typeRef = GetType(
Item
, false);
175
return
Item
.Name;
215
Generator.AddError(Strings.InvalidGetStatementSuppliedForProperty(
Item
.Name),
224
AddGetterSetterFixUp(Generator.FixUps, PropertyFQName, GetGetterAccessibility(
Item
), access, true);
232
if (MetadataUtil.IsComplexType(
Item
.TypeUsage.EdmType))
237
if (GetCollectionKind(
Item
.TypeUsage) == CollectionKind.None)
247
new CodePrimitiveExpression(
Item
.Nullable),
261
PrimitiveType primitiveType =
Item
.TypeUsage.EdmType as PrimitiveType;
292
AddGetterSetterFixUp(Generator.FixUps, PropertyFQName, GetSetterAccessibility(
Item
), access, false);
327
Generator.AddError(Strings.InvalidSetStatementSuppliedForProperty(
Item
.Name),
334
if (MetadataUtil.IsPrimitiveType(
Item
.TypeUsage.EdmType))
338
else if (MetadataUtil.IsComplexType(
Item
.TypeUsage.EdmType))
343
else if (MetadataUtil.IsCollectionType(
Item
.TypeUsage.EdmType))
345
if (MetadataUtil.IsComplexType(((CollectionType)
Item
.TypeUsage.EdmType).TypeUsage.EdmType))
347
EmitComplexTypePropertySetStatements(statements, GetCollectionKind(
Item
.TypeUsage));
351
Debug.Assert(MetadataUtil.IsPrimitiveType(((CollectionType)
Item
.TypeUsage.EdmType).TypeUsage.EdmType),
353
EmitScalarTypePropertySetStatements(statements, GetCollectionKind(
Item
.TypeUsage));
357
else if (MetadataUtil.IsEnumerationType(
Item
.TypeUsage.EdmType))
454
Debug.Assert(((MetadataUtil.IsPrimitiveType(
Item
.TypeUsage.EdmType)) || (MetadataUtil.IsCollectionType(
Item
.TypeUsage.EdmType)))
464
PrimitiveType primitiveType = (PrimitiveType)
Item
.TypeUsage.EdmType;
481
parameters.Add(new CodePrimitiveExpression(
Item
.Nullable));
557
StructuralType parentBaseClass =
Item
.DeclaringType.BaseType as StructuralType;
677
EntityType entity =
Item
.DeclaringType as EntityType;
680
return entity.KeyMembers.Contains(
Item
.Name);
889
return
Item
.DeclaringType.FullName + "." +
Item
.Name;
905
return
Item
.DeclaringType.Name;
916
CommentEmitter.EmitSummaryComments(
Item
, memberProperty.Comments);
937
if (Helper.IsCollectionType(
Item
.TypeUsage.EdmType) && GetCollectionKind(
Item
.TypeUsage) != CollectionKind.None)
941
throw EDesignUtil.InvalidOperation(Strings.CannotChangePropertyReturnTypeToNull(
Item
.Name,
Item
.DeclaringType.Name));
956
throw EDesignUtil.InvalidOperation(Strings.CannotChangePropertyReturnType(
Item
.Name,
Item
.DeclaringType.Name));
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (1)
210
if (MetadataUtil.IsComplexType(propertyEmitter.
Item
.TypeUsage.EdmType))