35 references to MakeReadOnly
System.Data.Entity (35)
System\Data\Common\Utils\Boolean\BoolExpr.cs (1)
338_children.MakeReadOnly();
System\Data\Common\Utils\Boolean\ConversionContext.cs (1)
184var constraint = new DomainConstraint<T_Variable, T_Element>(domainVariable, range.MakeReadOnly());
System\Data\Common\Utils\Boolean\Converter.cs (4)
106_dnf = new DnfSentence<T_Identifier>(emptyClauseSet.MakeReadOnly()); 114_cnf = new CnfSentence<T_Identifier>(emptyClauseSet.MakeReadOnly()); 127_cnf = new CnfSentence<T_Identifier>(cnfClauses.MakeReadOnly()); 128_dnf = new DnfSentence<T_Identifier>(dnfClauses.MakeReadOnly());
System\Data\Common\Utils\Boolean\DomainConstraint.cs (1)
109: this(variable, new Set<T_Element>(new T_Element[] { element }).MakeReadOnly())
System\Data\Common\Utils\Set.cs (1)
33internal static readonly Set<TElement> Empty = new Set<TElement>().MakeReadOnly();
System\Data\EntityClient\EntityCommandDefinition.cs (1)
124_entitySets.MakeReadOnly();
System\Data\Mapping\FunctionImportMapping.cs (1)
324this.DiscriminatorColumns[i], discriminatorDomains[i].MakeReadOnly());
System\Data\Mapping\StorageMappingItemLoader.cs (2)
468entitySetMapping.ImplicitlyMappedAssociationSetEnds).MakeReadOnly(); 506actualEnds.MakeReadOnly();
System\Data\Mapping\Update\Internal\AssociationSetMetadata.cs (1)
139set.MakeReadOnly();
System\Data\Mapping\Update\Internal\ExtractorMetadata.cs (3)
58keyMembers = new Set<EdmMember>(((RowType)type).Properties).MakeReadOnly(); 63keyMembers = new Set<EdmMember>(entityType.KeyMembers).MakeReadOnly(); 65.SelectMany(fk => fk.Item2.ToProperties)).MakeReadOnly();
System\Data\Mapping\Update\Internal\ViewLoader.cs (1)
223m_affectedTables.Add(entitySetBase, affectedTables.MakeReadOnly());
System\Data\Mapping\ViewGeneration\Structures\BoolLiteral.cs (4)
53domain.MakeReadOnly(); 54range.MakeReadOnly(); 184Set<Constant> variableDomain = new Set<Constant>(possibleValues, Constant.EqualityComparer).MakeReadOnly(); 185Set<Constant> thisDomain = new Set<Constant>(actualValues, Constant.EqualityComparer).MakeReadOnly();
System\Data\Mapping\ViewGeneration\Validation\ForeignConstraint.cs (1)
557Set<EdmProperty> keyMembers = new Set<EdmProperty>(propertyList).MakeReadOnly();
System\Data\Mapping\ViewGeneration\Validation\KeyConstraint.cs (1)
29m_keySlots = new Set<TSlot>(keySlots, comparer).MakeReadOnly();
System\Data\Query\PlanCompiler\StructuredTypeInfo.cs (1)
244return new Common.Utils.Set<md.EntitySet>(m_entitySetIdToEntitySetMap).MakeReadOnly();
System\Data\SqlClient\SqlGen\SqlFunctionCallHandler.cs (6)
64StringComparer.OrdinalIgnoreCase).MakeReadOnly(); 66StringComparer.Ordinal).MakeReadOnly(); 73StringComparer.Ordinal).MakeReadOnly(); 75StringComparer.Ordinal).MakeReadOnly(); 80StringComparer.Ordinal).MakeReadOnly(); 88StringComparer.Ordinal).MakeReadOnly();
System\Data\SqlClient\SqlGen\SqlGenerator.cs (5)
310StringComparer.Ordinal).MakeReadOnly(); 313StringComparer.Ordinal).MakeReadOnly(); 316StringComparer.Ordinal).MakeReadOnly(); 326StringComparer.Ordinal).MakeReadOnly(); 329StringComparer.Ordinal).MakeReadOnly();