Table of Contents

Class MultiDataBaseInitServiceBase<TDbContext>

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

string

Methods

CanConnect(DbContext, out string)

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

Parameters

db DbContext
message string

Returns

bool

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 abstract bool TryConnect(out string message)

Parameters

message string

Returns

bool