MySql.Data.MySqlClient.MySqlProviderManifest.GetEdmType C# (CSharp) Method

GetEdmType() public method

public GetEdmType ( TypeUsage storeType ) : TypeUsage
storeType TypeUsage
return TypeUsage
    public override TypeUsage GetEdmType(TypeUsage storeType)
    {
      if (storeType == null)
      {
        throw new ArgumentNullException("storeType");
      }

      string storeTypeName = storeType.EdmType.Name.ToLowerInvariant();

      if (!base.StoreTypeNameToEdmPrimitiveType.ContainsKey(storeTypeName))
      {
        throw new ArgumentException(String.Format("The underlying provider does not support the type '{0}'.", storeTypeName));
      }

      PrimitiveType edmPrimitiveType = base.StoreTypeNameToEdmPrimitiveType[storeTypeName];
      return TypeUsage.CreateDefaultTypeUsage(edmPrimitiveType);
    }