google-code-export / dblinq2007

Automatically exported from code.google.com/p/dblinq2007
Other
0 stars 0 forks source link

DBMetal enum temporarily solution #303

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
CodeGenerator.cs

static CodeTypeReference ToCodeTypeReference(Column column)

change $t code to:

System.Type t;
try
{
    t = System.Type.GetType(column.Type);
}
catch (Exception)
{
    t = int.MaxValue.GetType();
}

====================  ====================

DbLinq.Util TypeLoader.cs

public static Type Load(string name)

change return code to:

try
{
    return Type.GetType(name);
}
catch (Exception)
{
    return int.MaxValue.GetType();
}

hope this helps

Original issue reported on code.google.com by msg7...@gmail.com on 14 Feb 2011 at 12:55