public void ToCsharpTest() { User user = new User(); string test = "ar_id_a"; System.Console.WriteLine(NameConverter.ToCsharp(test)); }
public void TableSqltoClassTest() { TableSql t = new TableSql(); t.TableName = "user"; string type = NameConverter.ToCsharp(t.TableName); // object keepo = Activator.CreateInstance(Type.GetType("ORM."+type)); var myObj = Activator.CreateInstance(Type.GetType("TestsORM" + "." + type)); // namespace + type Type test = myObj.GetType(); var u = NameConverter.GetClassCsharp <object>(t); System.Console.WriteLine(u.GetType()); }