C/S快速开发框架旗舰版V5.1 | dalBase与IDatabase关系|软件手册
dalBase类声明
/// <summary>
/// 数据访问层基类定义
/// </summary>
public class dalBase
{
/// <summary>
/// 当前登录的用户信息
/// </summary>
protected Loginer _Loginer = null;
protected IDatabase _Database;
/// <summary>
/// 建立连接的数据库(预设为当前账套对应的数据库)
/// </summary>
public IDatabase Database { get { return _Database; } set { _Database = value; } }
/// <summary>
///SQL命令生成器的对象工厂
/// </summary>
/// <returns></returns>
protected ICommandFactory GeneratorFactory
{
get { return new SqlGeneratorFactory(_Database); }
}
扫一扫加作者微信