Ejemplo n.º 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));
 }
Ejemplo n.º 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) + " "));
        }