Ejemplo n.º 1
0
        private static DotNetType GetDotNetTypeinternalFromDotNetType(List<DatabaseTypeMap> maps, string dotNetTypeName, Utility.DatabaseTypes databaseType)
        {
            DatabaseTypeMap map = maps.SingleOrDefault(m => m.DotNetType.Name.ToLowerInvariant() == dotNetTypeName.ToLowerInvariant());

            if (map != null)
                return map.DotNetType;

            FormCustomType form = new FormCustomType(dotNetTypeName, databaseType);
            form.ShowDialog();
            return form.DotNetType;
        }
Ejemplo n.º 2
0
        private static DotNetType GetDotNetTypeinternalFromDatabaseType(List <DatabaseTypeMap> maps, string typeName, Utility.DatabaseTypes databaseType)
        {
            DatabaseTypeMap map = maps.SingleOrDefault(m => m.TypeName.ToLowerInvariant() == typeName.ToLowerInvariant());

            if (map != null)
            {
                return(map.DotNetType);
            }

            FormCustomType form = new FormCustomType(typeName, databaseType);

            form.ShowDialog();
            return(form.DotNetType);
        }