コード例 #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
ファイル: Querys.cs プロジェクト: crazyants/LightDataTable
        public static QueryWhere Select <T>()
        {
            var type = MethodHelper.GetActualType(typeof(T));

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