|
@@ -66,17 +66,17 @@ namespace Luticate2.Utils.DataAccess
|
66
|
66
|
return id;
|
67
|
67
|
}
|
68
|
68
|
|
69
|
|
- protected virtual IQueryable<TModel> GetGetQueryable(DbContext db, DbSet<TModel> table)
|
|
69
|
+ protected virtual IQueryable<TModel> GetGetQueryable(TDbContext db, DbSet<TModel> table)
|
70
|
70
|
{
|
71
|
71
|
return table;
|
72
|
72
|
}
|
73
|
73
|
|
74
|
|
- protected virtual IQueryable<TModel> GetEditQueryable(DbContext db, DbSet<TModel> table)
|
|
74
|
+ protected virtual IQueryable<TModel> GetEditQueryable(TDbContext db, DbSet<TModel> table)
|
75
|
75
|
{
|
76
|
76
|
return table;
|
77
|
77
|
}
|
78
|
78
|
|
79
|
|
- protected virtual IQueryable<TModel> GetDeleteQueryable(DbContext db, DbSet<TModel> table)
|
|
79
|
+ protected virtual IQueryable<TModel> GetDeleteQueryable(TDbContext db, DbSet<TModel> table)
|
80
|
80
|
{
|
81
|
81
|
return table;
|
82
|
82
|
}
|
|
@@ -97,7 +97,7 @@ namespace Luticate2.Utils.DataAccess
|
97
|
97
|
return LuResult<T>.Error(LuStatus.NotFound, typeof(TModel).Name + ": Value not found", "");
|
98
|
98
|
}
|
99
|
99
|
|
100
|
|
- protected IQueryable<TModel> GetFilterQuery(LuFilterDbo filter, DbContext db, DbSet<TModel> table)
|
|
100
|
+ protected IQueryable<TModel> GetFilterQuery(LuFilterDbo filter, TDbContext db, DbSet<TModel> table)
|
101
|
101
|
{
|
102
|
102
|
return GetGetQueryable(db, table).Where(GetFilterExpression(filter));
|
103
|
103
|
}
|