예제 #1
0
 public static QueryWhere Select(Type type, bool isSqllite)
 {
     type = MethodHelper.GetActualType(type);
     return(new QueryWhere("Select * from " + (type.GetCustomAttribute <Table>()?.Name ?? type.Name) + " ", isSqllite));
 }
예제 #2
0
        public static QueryWhere Select <T>()
        {
            var type = MethodHelper.GetActualType(typeof(T));

            return(new QueryWhere("Select * from " + (type.GetCustomAttribute <Table>()?.Name ?? typeof(T).Name) + " "));
        }