46 references to MetadataFlags
System.Data.Entity (46)
System\Data\Mapping\Mapping.cs (1)
21
: base(
MetadataFlags
.Readonly)
System\Data\Metadata\Edm\EdmType.cs (2)
145
return GetFlag(
MetadataFlags
.IsAbstract);
149
SetFlag(
MetadataFlags
.IsAbstract, value);
System\Data\Metadata\Edm\EnumMember.cs (1)
47
: base(
MetadataFlags
.Readonly)
System\Data\Metadata\Edm\Facet.cs (1)
33
:base(
MetadataFlags
.Readonly)
System\Data\Metadata\Edm\GlobalItem.cs (1)
35
internal GlobalItem(
MetadataFlags
flags)
System\Data\Metadata\Edm\MetadataItem.cs (39)
34
internal MetadataItem(
MetadataFlags
flags)
67
private
MetadataFlags
_flags;
156
return GetFlag(
MetadataFlags
.Readonly);
174
SetFlag(
MetadataFlags
.Readonly, true);
200
switch (_flags &
MetadataFlags
.DataSpace)
203
case
MetadataFlags
.CSpace: return DataSpace.CSpace;
204
case
MetadataFlags
.OSpace: return DataSpace.OSpace;
205
case
MetadataFlags
.SSpace: return DataSpace.SSpace;
206
case
MetadataFlags
.OCSpace: return DataSpace.OCSpace;
207
case
MetadataFlags
.CSSpace: return DataSpace.CSSpace;
212
_flags = (_flags & ~
MetadataFlags
.DataSpace) | (
MetadataFlags
.DataSpace & Convert(space));
214
private static
MetadataFlags
Convert(DataSpace space) {
217
default: return
MetadataFlags
.None; // invalid
218
case DataSpace.CSpace: return
MetadataFlags
.CSpace;
219
case DataSpace.OSpace: return
MetadataFlags
.OSpace;
220
case DataSpace.SSpace: return
MetadataFlags
.SSpace;
221
case DataSpace.OCSpace: return
MetadataFlags
.OCSpace;
222
case DataSpace.CSSpace: return
MetadataFlags
.CSSpace;
228
switch (_flags &
MetadataFlags
.ParameterMode)
231
case
MetadataFlags
.In: return ParameterMode.In;
232
case
MetadataFlags
.Out: return ParameterMode.Out;
233
case
MetadataFlags
.InOut: return ParameterMode.InOut;
234
case
MetadataFlags
.ReturnValue: return ParameterMode.ReturnValue;
239
_flags = (_flags & ~
MetadataFlags
.ParameterMode) | (
MetadataFlags
.ParameterMode & Convert(mode));
241
private static
MetadataFlags
Convert(ParameterMode mode)
245
default: return
MetadataFlags
.ParameterMode; // invalid
246
case ParameterMode.In: return
MetadataFlags
.In;
247
case ParameterMode.Out: return
MetadataFlags
.Out;
248
case ParameterMode.InOut: return
MetadataFlags
.InOut;
249
case ParameterMode.ReturnValue: return
MetadataFlags
.ReturnValue;
253
internal bool GetFlag(
MetadataFlags
flag)
257
internal void SetFlag(
MetadataFlags
flag, bool value)
259
if ((flag &
MetadataFlags
.Readonly) ==
MetadataFlags
.Readonly)
261
Debug.Assert(System.Convert.ToInt32(flag & ~
MetadataFlags
.Readonly,CultureInfo.InvariantCulture) == 0,
270
if (IsReadOnly && ((flag &
MetadataFlags
.Readonly) ==
MetadataFlags
.Readonly))
System\Data\Metadata\Edm\TypeUsage.cs (1)
32
:base(
MetadataFlags
.Readonly)