Class MultiDataBaseInitServiceBase<TDbContext>
public abstract class MultiDataBaseInitServiceBase<TDbContext> : IDataBaseInitService, ILoad where TDbContext : DbContext
Type Parameters
TDbContext
- Inheritance
-
MultiDataBaseInitServiceBase<TDbContext>
- Implements
- Inherited Members
- Extension Methods
Properties
Name
public string Name { get; }
Property Value
Methods
CanConnect(DbContext, out string)
protected virtual bool CanConnect(DbContext db, out string message)
Parameters
Returns
GetSetting()
protected abstract IDataBaseSetting GetSetting()
Returns
Load(out string)
public virtual bool Load(out string message)
Parameters
message
string
Returns
TryConnect(out string)
初始化启动尝试连接
public abstract bool TryConnect(out string message)
Parameters
message
string