/// <summary> </summary> public static void Init(DBCfgViewModel dBConfig) { _DBCfgViewModel = dBConfig; RepositorySystem repositorySystem = new RepositorySystem(dBConfig); RepositoryOrganizationType repositoryOrganizationType = new RepositoryOrganizationType(dBConfig); RepositoryAttributionType repositoryAttributionType = new RepositoryAttributionType(dBConfig); RepositoryOrganization repositoryOrganization = new RepositoryOrganization(dBConfig); RepositoryPrivilegeGroup repositoryPrivilegeGroup = new RepositoryPrivilegeGroup(dBConfig); RepositoryPrivilege repositoryPrivilege = new RepositoryPrivilege(dBConfig); RepositoryRelationPositionRole repositoryRelationPositionRole = new RepositoryRelationPositionRole(dBConfig); RepositoryUser repositoryUser = new RepositoryUser(dBConfig); IocUnity.AddTransient <BusinessSystem>(); IocUnity.AddTransient <BusinessUser>(); IocUnity.AddTransient <BusinessRole>(); IocUnity.AddTransient <BusinessPrivilege>(); IocUnity.AddTransient <BusinessOrganization>(); IocUnity.AddTransient <BusinessItem>(); RepositoryRelationUserOrganization repositoryRelationUserOrganization = new RepositoryRelationUserOrganization(dBConfig); RepositoryRole repositoryRole = new RepositoryRole(dBConfig); RepositoryRelationRolePrivilege repositoryRelationRolePrivilege = new RepositoryRelationRolePrivilege(dBConfig); RepositoryRelationUserPrivilege repositoryRelationUserPrivilege = new RepositoryRelationUserPrivilege(dBConfig); RepositoryRelationUserRole repositoryRelationUserRole = new RepositoryRelationUserRole(dBConfig); RepositoryRelationOrganization repositoryRelationOrganization = new RepositoryRelationOrganization(dBConfig); RepositioryRelationOrganizationForeign repositioryRelationOrganizationForeign = new RepositioryRelationOrganizationForeign(dBConfig); RepositoryItem repositoryItem = new RepositoryItem(dBConfig); RepositoryItemContent repositoryItemContent = new RepositoryItemContent(dBConfig); BaseData <TRelationRoleItem> rBaseData = new BaseData <TRelationRoleItem>(dBConfig); IocUnity.AddSingleton(rBaseData); IocUnity.AddSingleton(repositoryItem); IocUnity.AddSingleton(repositoryItemContent); IocUnity.AddSingleton(repositoryRelationOrganization); IocUnity.AddSingleton(repositoryRelationUserRole); IocUnity.AddSingleton(repositoryRelationUserOrganization); IocUnity.AddSingleton(repositorySystem); IocUnity.AddSingleton(repositoryOrganizationType); IocUnity.AddSingleton(repositoryAttributionType); IocUnity.AddSingleton(repositoryOrganization); IocUnity.AddSingleton(repositoryPrivilegeGroup); IocUnity.AddSingleton(repositoryPrivilege); IocUnity.AddSingleton(repositoryRelationPositionRole); IocUnity.AddSingleton(repositoryUser); IocUnity.AddSingleton(repositoryRole); IocUnity.AddSingleton(repositoryRelationRolePrivilege); IocUnity.AddSingleton(repositoryRelationUserPrivilege); IocUnity.AddSingleton(repositioryRelationOrganizationForeign); }
/// <summary> /// 初始化 /// </summary> /// <param name="dBConfig"></param> /// <returns></returns> public RepositoryRelationUserOrganization(DBCfgViewModel dBConfig) : base(dBConfig) { }
protected DRepository(DBCfgViewModel dBCfgViewModel) { _defaultConnectionDBConfig = DBConfig.GetConfig(dBCfgViewModel); }
/// <summary> /// 初始数据库配置 /// </summary> /// <param name="dBConfig"></param> public RepositoryPrivilege(DBCfgViewModel dBConfig) : base(dBConfig) { }
public DapperRepository(DBCfgViewModel dBCfgViewModel) : base(dBCfgViewModel) { }
/// <summary> /// 初始数据库配置 /// </summary> /// <param name="dBConfig"></param> public RepositorySystem(DBCfgViewModel dBConfig) : base(dBConfig) { }
/// <summary> /// 初始化 /// </summary> /// <param name="dBConfig"></param> public RepositioryRelationOrganizationForeign(DBCfgViewModel dBConfig) : base(dBConfig) { }
/// <summary> /// 初始化 /// </summary> /// <param name="dBConfig"></param> /// <returns></returns> public RepositoryAttributionType(DBCfgViewModel dBConfig) : base(dBConfig) { }
/// <summary> /// 初始化 /// </summary> /// <param name="dBConfig"></param> public RepositoryRelationUserRole(DBCfgViewModel dBConfig) : base(dBConfig) { }
/// <summary> /// /// </summary> /// <param name="dBConfig"></param> public BaseData(DBCfgViewModel dBConfig) : base(dBConfig) { }
/// <summary> /// /// </summary> /// <param name="dBCfg"></param> public RepositoryItemContent(DBCfgViewModel dBCfg) : base(dBCfg) { }
/// <summary> /// 初始化 /// </summary> /// <param name="dBConfig"></param> public RepositoryClone(DBCfgViewModel dBConfig) : base(dBConfig) { }
/// <summary> /// /// </summary> /// <param name="dBConfig"></param> public LogRepository(DBCfgViewModel dBConfig) : base(dBConfig) { }
/// <summary> /// /// </summary> /// <param name="dBCfgViewModel"></param> public RepositoryRelationUserPrivilege(DBCfgViewModel dBCfgViewModel) : base(dBCfgViewModel) { }
/// <summary> /// 初始化 /// </summary> /// <param name="dBConfig"></param> public RepositoryRelationRolePrivilege(DBCfgViewModel dBConfig) : base(dBConfig) { }
/// <summary> /// 初始数据库配置 /// </summary> /// <param name="dBConfig"></param> public RepositoryOrganizationType(DBCfgViewModel dBConfig) : base(dBConfig) { }