예제 #1
0
 protected static string GetType(Type type, ISQLDatabase database)
 {
   string result = database.GetSQLType(type);
   if (result == null)
     throw new InvalidDataException(".net type '{0}' isn't supported by the installed database '{1}', version {2}", type.Name, database.DatabaseType, database.DatabaseVersion);
   return result;
 }
        protected static string GetType(Type type, ISQLDatabase database)
        {
            string result = database.GetSQLType(type);

            if (result == null)
            {
                throw new InvalidDataException(".net type '{0}' isn't supported by the installed database '{1}', version {2}", type.Name, database.DatabaseType, database.DatabaseVersion);
            }
            return(result);
        }