예제 #1
0
        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());
        }