Class SingleDataBaseInitServiceBase<TDbContext>
public abstract class SingleDataBaseInitServiceBase<TDbContext> : IDataBaseInitService, ILoad where TDbContext : DbContext
Type Parameters
TDbContext
- Inheritance
-
SingleDataBaseInitServiceBase<TDbContext>
- Implements
- Derived
- 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
GetOptionsBuilder(string)
protected abstract DbContextOptionsBuilder<TDbContext> GetOptionsBuilder(string connect)
Parameters
connect
string
Returns
- DbContextOptionsBuilder<TDbContext>
GetSetting()
protected abstract IDataBaseSetting GetSetting()
Returns
Load(out string)
public virtual bool Load(out string message)
Parameters
message
string
Returns
TryConnect(out string)
初始化启动尝试连接
public bool TryConnect(out string message)
Parameters
message
string