3 writes to Value
System.Data.Entity (3)
System\Data\EntityModel\SchemaObjectModel\SchemaEnumType.cs (3)
169
enumMember.
Value
= 0;
176
enumMember.
Value
= previousValue + 1;
186
enumMember.
Value
= previousValue;
7 references to Value
System.Data.Entity (7)
System\Data\EntityModel\SchemaObjectModel\SchemaEnumType.cs (5)
165
if (!enumMember.
Value
.HasValue)
173
long previousValue = (long)_enumMembers[_enumMembers.Count - 1].
Value
;
229
Debug.Assert(!_enumMembers.Any(m => !m.
Value
.HasValue), "member values should have been fixed up already.");
233
.Where(m => !Helper.IsEnumMemberValueInRange(enumUnderlyingType.TypeKind, (long)m.
Value
));
239
System.Data.Entity.Strings.EnumMemberValueOutOfItsUnderylingTypeRange(invalidEnumMember.
Value
, invalidEnumMember.Name, UnderlyingType.Name));
System\Data\Metadata\Converter.cs (2)
1062
Debug.Assert(somEnumMember.
Value
!= null, "value must not be null at this point");
1063
var enumMember = new EnumMember(somEnumMember.Name, Convert.ChangeType(somEnumMember.
Value
, clrEnumUnderlyingType, CultureInfo.InvariantCulture));