34 references to IsReadOnly
System.Data.Entity (34)
System\Data\Common\CommandTrees\AbstractExpressions.cs (1)
345
Debug.Assert(type.
IsReadOnly
, "Editable type metadata specified for DbExpression.Type");
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (5)
273
Debug.Assert(elementType.
IsReadOnly
, "DbExpressionBinding Expression ResultType has editable element type");
309
Debug.Assert((elementType.
IsReadOnly
), "DbGroupExpressionBinding Expression ResultType has editable element type");
1764
if (!(item.
IsReadOnly
))
1773
if (!(item.
IsReadOnly
))
1782
if (!(item.
IsReadOnly
))
System\Data\Common\EntitySql\SemanticResolver.cs (2)
188
Debug.Assert(paramDef.ResultType.
IsReadOnly
, "paramDef.ResultType.IsReadOnly must be set");
215
Debug.Assert(varDef.ResultType.
IsReadOnly
, "varDef.ResultType.IsReadOnly must be set");
System\Data\Metadata\Edm\AssociationSet.cs (1)
75
if (!this.
IsReadOnly
)
System\Data\Metadata\Edm\AssociationSetEnd.cs (1)
144
if (!
IsReadOnly
)
System\Data\Metadata\Edm\AssociationType.cs (2)
62
Debug.Assert(
IsReadOnly
, "this is a wrapper around this.Members, don't call it during metadata loading, only call it after the metadata is set to read-only");
119
if (!
IsReadOnly
)
System\Data\Metadata\Edm\ComplexType.cs (1)
66
Debug.Assert(
IsReadOnly
, "this is a wrapper around this.Members, don't call it during metadata loading, only call it after the metadata is set to readonly");
System\Data\Metadata\Edm\EdmFunction.cs (1)
314
if (!
IsReadOnly
)
System\Data\Metadata\Edm\EdmMember.cs (1)
103
if (!
IsReadOnly
)
System\Data\Metadata\Edm\EdmType.cs (1)
336
if (!
IsReadOnly
)
System\Data\Metadata\Edm\EntityContainer.cs (1)
108
if (!
IsReadOnly
)
System\Data\Metadata\Edm\EntitySetBase.cs (1)
201
if (!this.
IsReadOnly
)
System\Data\Metadata\Edm\EntityType.cs (1)
157
Debug.Assert(
IsReadOnly
, "this is a wrapper around this.Members, don't call it during metadata loading, only call it after the metadata is set to readonly");
System\Data\Metadata\Edm\EntityTypeBase.cs (1)
116
if (!
IsReadOnly
)
System\Data\Metadata\Edm\EnumType.cs (1)
154
if (!
IsReadOnly
)
System\Data\Metadata\Edm\FunctionParameter.cs (1)
134
if (!
IsReadOnly
)
System\Data\Metadata\Edm\ItemCollection.cs (1)
89
Debug.Assert(item.
IsReadOnly
, "The item is not readonly, it should be by the time it is added to the item collection");
System\Data\Metadata\Edm\MetadataItem.cs (3)
94
if (
IsReadOnly
)
168
if (!
IsReadOnly
)
270
if (
IsReadOnly
&& ((flag & MetadataFlags.Readonly) == MetadataFlags.Readonly))
System\Data\Metadata\Edm\MetadataProperty.cs (1)
145
if (!
IsReadOnly
)
System\Data\Metadata\Edm\ReferentialConstraint.cs (1)
136
if (!
IsReadOnly
)
System\Data\Metadata\Edm\RelationshipType.cs (1)
49
Debug.Assert(
IsReadOnly
, "this is a wrapper around this.Members, don't call it during metadata loading, only call it after the metadata is set to readonly");
System\Data\Metadata\Edm\RowType.cs (1)
90
Debug.Assert(
IsReadOnly
, "this is a wrapper around this.Members, don't call it during metadata loading, only call it after the metadata is set to readonly");
System\Data\Metadata\Edm\StructuralType.cs (1)
84
if (!
IsReadOnly
)
System\Data\Metadata\Edm\util.cs (1)
32
if (item.
IsReadOnly
)
System\Data\Metadata\EdmValidator.cs (1)
153
if ( (item.
IsReadOnly
&& SkipReadOnlyItems) || validatedItems.Contains(item) )
System\Data\Metadata\TypeHelpers.cs (1)
654
if (!(type.
IsReadOnly
))