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