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