/// <summary>构造函数</summary> public BugCategoryProvider() { this.configuration = BugConfigurationView.Instance.Configuration; this.ibatisMapping = this.configuration.Keys["IBatisMapping"].Value; this.ibatisMapper = ISqlMapHelper.CreateSqlMapper(ibatisMapping, true); }
/// <summary>构造函数</summary> public FavoriteProvider() { this.configuration = FavoriteConfigurationView.Instance.Configuration; this.ibatisMapping = this.configuration.Keys["IBatisMapping"].Value; this.ibatisMapper = ISqlMapHelper.CreateSqlMapper(this.ibatisMapping); }
/// <summary>构造函数</summary> public ApplicationErrorProvider() { this.configuration = AppsConfigurationView.Instance.Configuration; this.ibatisMapping = this.configuration.Keys["IBatisMapping"].Value; this.ibatisMapper = ISqlMapHelper.CreateSqlMapper(this.ibatisMapping, true); }
/// <summary>构造函数</summary> public EntityMetaDataProvider() { this.configuration = EntitiesConfigurationView.Instance.Configuration; this.ibatisMapping = configuration.Keys["IBatisMapping"].Value; this.ibatisMapper = ISqlMapHelper.CreateSqlMapper(ibatisMapping); }
/// <summary>构造函数</summary> public TaskWorkReceiverProvider() { this.configuration = TasksConfigurationView.Instance.Configuration; this.ibatisMapping = this.configuration.Keys["IBatisMapping"].Value; this.ibatisMapper = ISqlMapHelper.CreateSqlMapper(this.ibatisMapping, true); }
/// <summary>构造函数</summary> public StandardOrganizationUnitProvider() { configuration = MembershipConfigurationView.Instance.Configuration; ibatisMapping = configuration.Keys["IBatisMapping"].Value; this.ibatisMapper = ISqlMapHelper.CreateSqlMapper(ibatisMapping, true); }
/// <summary>构造函数</summary> public ApplicationSettingGroupProvider() { configuration = AppsConfigurationView.Instance.Configuration; ibatisMapping = configuration.Keys["IBatisMapping"].Value; ibatisMapper = ISqlMapHelper.CreateSqlMapper(this.ibatisMapping, true); }
/// <summary>构造函数</summary> public StorageNodeProvider() { this.configuration = StoragesConfigurationView.Instance.Configuration; this.ibatisMapping = this.configuration.Keys["IBatisMapping"].Value; this.ibatisMapper = ISqlMapHelper.CreateSqlMapper(this.ibatisMapping, true); }
/// <summary>构造函数</summary> public EntityDocObjectProvider() { configuration = EntitiesConfigurationView.Instance.Configuration; ibatisMapping = configuration.Keys["IBatisMapping"].Value; ibatisMapper = ISqlMapHelper.CreateSqlMapper(ibatisMapping); }
/// <summary></summary> public MemberProvider() { this.configuration = MembershipConfigurationView.Instance.Configuration; this.ibatisMapping = configuration.Keys["IBatisMapping"].Value; this.ibatisMapper = ISqlMapHelper.CreateSqlMapper(ibatisMapping, true); }
/// <summary>构造函数</summary> public TaskHistoryProvider() { this.configuration = TasksConfigurationView.Instance.Configuration; this.ibatisMapping = this.configuration.Keys["IBatisMapping"].Value; this.ibatisMapper = ISqlMapHelper.CreateSqlMapper(this.ibatisMapping); }
/// <summary>构造函数</summary> public MemberExtensionInformationProvider() { configuration = HumanResourcesConfigurationView.Instance.Configuration; ibatisMapping = configuration.Keys["IBatisMapping"].Value; this.ibatisMapper = ISqlMapHelper.CreateSqlMapper(ibatisMapping, true); }
/// <summary>构造函数</summary> public JobGradeProvider() { configuration = MembershipConfigurationView.Instance.Configuration; ibatisMapping = configuration.Keys["IBatisMapping"].Value; ibatisMapper = ISqlMapHelper.CreateSqlMapper(ibatisMapping, true); }
/// <summary>���캯��</summary> public NavigationPortalTopMenuProvider() { this.configuration = NavigationConfigurationView.Instance.Configuration; this.ibatisMapping = this.configuration.Keys["IBatisMapping"].Value; this.ibatisMapper = ISqlMapHelper.CreateSqlMapper(this.ibatisMapping); }
/// <summary>构造函数</summary> public ForumThreadProvider() { this.configuration = ForumConfigurationView.Instance.Configuration; this.ibatisMapping = this.configuration.Keys["IBatisMapping"].Value; this.ibatisMapper = ISqlMapHelper.CreateSqlMapper(this.ibatisMapping, true); }
/// <summary>构造函数</summary> public ApplicationPackageProvider() { configuration = AppsConfigurationView.Instance.Configuration; ibatisMapping = configuration.Keys["IBatisMapping"].Value; logger.Info("begin"); ibatisMapper = ISqlMapHelper.CreateSqlMapper(ibatisMapping, true); logger.Info("end"); }
public void TestCreateMapper() { ISqlMapper ibatisMapper = null; string ibatisMapping = WebConfigurationView.Instance.Configuration.Keys["IBatisMapping"].Value; ibatisMapper = ISqlMapHelper.CreateSqlMapper(ibatisMapping, true); Assert.IsNotNull(ibatisMapper); }
public void TestCreateMapper() { TasksConfiguration configuration = TasksConfigurationView.Instance.Configuration; string ibatisMapping = configuration.Keys["IBatisMapping"].Value; Console.WriteLine(ibatisMapping); ISqlMapper ibatisMapper = ISqlMapHelper.CreateSqlMapper(ibatisMapping, true); Assert.IsNotNull(ibatisMapper); }
public void TestCreateMapper() { AttachmentStorageConfiguration configuration = AttachmentStorageConfigurationView.Instance.Configuration; ISqlMapper ibatisMapper = null; string ibatisMapping = configuration.Keys["IBatisMapping"].Value; ibatisMapper = ISqlMapHelper.CreateSqlMapper(ibatisMapping, true); Assert.IsNotNull(ibatisMapper); }
/// <summary>重新加载</summary> /// <param name="storageSchemaId">数据存储架构标识</param> /// <param name="ibatisMapping">IBatis映射文件</param> public Dictionary <string, ISqlMapper> CreateSqlMappers(string storageSchemaId, string ibatisMapping) { if (logger.IsDebugEnabled) { logger.Debug("X3Platform.Storages.StorageContext.Instance.CreateSqlMappers(storageSchemaId:\"" + storageSchemaId + "\", ibatisMapping:\"" + ibatisMapping + "\") begin"); } // 一个存储节点对应一个IBatisMapper对象, 每个节点都需要重复创建对象 Dictionary <string, ISqlMapper> ibatisMappers = new Dictionary <string, ISqlMapper>(); IList <IStorageNode> storageNodes = StorageContext.Instance.StorageNodeService.FindAllBySchemaId(storageSchemaId); logger.Debug("X3Platform.Storages.StorageContext.Instance.CreateSqlMappers() A"); foreach (IStorageNode storageNode in storageNodes) { if (logger.IsDebugEnabled) { logger.Debug("X3Platform.Storages.StorageContext.Instance.CreateSqlMappers() creating " + storageNode.Name); } var ibatisMapper = ISqlMapHelper.CreateSqlMapper(ibatisMapping, true); ibatisMapper.DataSource.ConnectionString = KernelConfigurationView.Instance.ReplaceKeyValue(storageNode.ConnectionString); // MySQL 数据库 自动增加非默认端口信息 if (ibatisMapper.DataSource.DbProvider.Name == "MySql" && ibatisMapper.DataSource.ConnectionString.ToLower().IndexOf("port=") == -1) { IConnectionPlugin connection = KernelConfigurationView.Instance.ConnectionPlugin; string port = connection.Port; if (!string.IsNullOrEmpty(port) && port != "3306") { ibatisMapper.DataSource.ConnectionString = StringHelper.TrimEnd(ibatisMapper.DataSource.ConnectionString, ";") + ";port=" + port + ";"; } } ibatisMappers.Add(storageNode.Name, ibatisMapper); } if (logger.IsDebugEnabled) { logger.Debug("X3Platform.Storages.StorageContext.Instance.CreateSqlMappers(storageSchemaId:\"" + storageSchemaId + "\", ibatisMapping:\"" + ibatisMapping + "\") end"); } return(ibatisMappers); }
/// <summary>构造函数</summary> public AssignedJobProvider() { this.ibatisMapping = MembershipConfigurationView.Instance.Configuration.Keys["IBatisMapping"].Value; this.ibatisMapper = ISqlMapHelper.CreateSqlMapper(this.ibatisMapping, true); }
public ConnectAccessTokenProvider() { this.ibatisMapping = ConnectConfigurationView.Instance.Configuration.Keys["IBatisMapping"].Value; this.ibatisMapper = ISqlMapHelper.CreateSqlMapper(this.ibatisMapping, true); }
/// <summary>构造函数</summary> public VerificationCodeTemplateProvider() { this.ibatisMapping = VerificationCodeConfigurationView.Instance.Configuration.Keys["IBatisMapping"].Value; this.ibatisMapper = ISqlMapHelper.CreateSqlMapper(this.ibatisMapping, true); }
/// <summary>构造函数</summary> public CustomizeLayoutProvider() { this.ibatisMapping = WebConfigurationView.Instance.Configuration.Keys["IBatisMapping"].Value; this.ibatisMapper = ISqlMapHelper.CreateSqlMapper(this.ibatisMapping, true); }
/// <summary>构造函数</summary> public TemplateContentProvider() { this.ibatisMapping = TemplateContentConfigurationView.Instance.Configuration.Keys["IBatisMapping"].Value; this.ibatisMapper = ISqlMapHelper.CreateSqlMapper(this.ibatisMapping, true); }
/// <summary>构造函数</summary> public EntityClickProvider() { this.ibatisMapping = EntitiesConfigurationView.Instance.Configuration.Keys["IBatisMapping"].Value; this.ibatisMapper = ISqlMapHelper.CreateSqlMapper(ibatisMapping, true); }
/// <summary>构造函数</summary> public DigitalNumberProvider() { this.ibatisMapping = DigitalNumberConfigurationView.Instance.Configuration.Keys["IBatisMapping"].Value; this.ibatisMapper = ISqlMapHelper.CreateSqlMapper(this.ibatisMapping, true); }
/// <summary></summary> public AttachmentFileProvider() { this.ibatisMapping = AttachmentStorageConfigurationView.Instance.Configuration.Keys["IBatisMapping"].Value; this.ibatisMapper = ISqlMapHelper.CreateSqlMapper(this.ibatisMapping, true); }
public RegionProvider() { this.ibatisMapping = RegionsConfigurationView.Instance.Configuration.Keys["IBatisMapping"].Value; this.ibatisMapper = ISqlMapHelper.CreateSqlMapper(this.ibatisMapping, true); }
/// <summary>构造函数</summary> public StandardRoleProvider() { this.ibatisMapping = MembershipConfigurationView.Instance.Configuration.Keys["IBatisMapping"].Value; ibatisMapper = ISqlMapHelper.CreateSqlMapper(ibatisMapping, true); }