Ejemplo n.º 1
0
 private static bool ValidateScalarTypesAreCompatible(TypeUsage cspaceType, TypeUsage storeType)
 {
     if (Helper.IsEnumType(cspaceType.EdmType))
     {
         return(TypeSemantics.IsSubTypeOf(TypeUsage.Create((EdmType)Helper.GetUnderlyingEdmTypeForEnumType(cspaceType.EdmType)), storeType));
     }
     return(TypeSemantics.IsSubTypeOf(cspaceType, storeType));
 }
Ejemplo n.º 2
0
 internal static PrimitiveType AsPrimitive(EdmType type)
 {
     if (!Helper.IsEnumType(type))
     {
         return((PrimitiveType)type);
     }
     return(Helper.GetUnderlyingEdmTypeForEnumType(type));
 }