从山证v2.3.0拷贝
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
using YLErp.Model;
|
||||
|
||||
namespace YLErp.Modules.DataCacheModule
|
||||
{
|
||||
public static partial class DataCacheManager
|
||||
{
|
||||
class ClientBlackDataSource : GenericeCachedDataSource<client_black>
|
||||
{
|
||||
public ClientBlackDataSource()
|
||||
{
|
||||
}
|
||||
|
||||
public override string TableName => nameof(client_black);
|
||||
|
||||
protected override DbContext CreateDbContext()
|
||||
{
|
||||
return DbContextFactory.GetClientDbContext(null);
|
||||
}
|
||||
|
||||
//---------------------------------------------
|
||||
|
||||
public static readonly ClientBlackDataSource Default;
|
||||
|
||||
static ClientBlackDataSource()
|
||||
{
|
||||
Default = new ClientBlackDataSource();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user