santa
New Member
Posts: 1
|
Post by santa on Jan 8, 2021 7:20:58 GMT
Hi everyone. I want to create table form their class name. SimpleSQL support:
public int CreateTable<T>() { System.Type type = typeof(T); [code....] }
What about: public int CreateTable(System.Type type) { //System.Type type = typeof(T); [code....] } or public int CreateTable(string nameOfTable) { System.Type type = Type.GetType(nameOfTable); [code....] }
|
|
|
Post by echo17 on Jan 8, 2021 14:23:15 GMT
Good question. I decided to make a FAQ for it: link
|
|