Table of Contents

Class SingleDataBaseInitServiceBase<TDbContext>

Namespace
HeBianGu.Data.DataBase
Assembly
HeBianGu.DataBase.Sqlite.dll
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

string

Methods

CanConnect(DbContext, out string)

protected virtual bool CanConnect(DbContext db, out string message)

Parameters

db DbContext
message string

Returns

bool

GetOptionsBuilder(string)

protected abstract DbContextOptionsBuilder<TDbContext> GetOptionsBuilder(string connect)

Parameters

connect string

Returns

DbContextOptionsBuilder<TDbContext>

GetSetting()

protected abstract IDataBaseSetting GetSetting()

Returns

IDataBaseSetting

Load(out string)

public virtual bool Load(out string message)

Parameters

message string

Returns

bool

TryConnect(out string)

初始化启动尝试连接

public bool TryConnect(out string message)

Parameters

message string

Returns

bool