コード例 #1
0
 static ConfigConnectionProvider()
 {
     _defaultConfig = new StorageContextConfigurationEntity
     {
         StorageContextConfigurationItemList = new List <StorageContextConfigurationItem>
         {
             new  StorageContextConfigurationItem
             {
                 Name             = "DefaultContext",
                 ProviderName     = "System.Data.SqlClient",
                 ConnectionString = "Server=.;Database=Adhesive;User ID=sa;Password=DLdNa9R+IFkkHxvWszyLHw==;Trusted_Connection=False;Persist Security Info=True",
             }
         }
     };
     _localStorageContextConfig = LocalConfigService.GetConfig("StorageConfig.config", _defaultConfig);
 }
コード例 #2
0
 static ConfigConnectionProvider()
 {
     _defaultConfig = new StorageContextConfigurationEntity
     {
         StorageContextConfigurationItemList = new List<StorageContextConfigurationItem>
                                  {
                                   new  StorageContextConfigurationItem
                                        {
                                            Name = "DefaultContext",
                                            ProviderName = "System.Data.SqlClient",
                                            ConnectionString = "Server=.;Database=Adhesive;User ID=sa;Password=DLdNa9R+IFkkHxvWszyLHw==;Trusted_Connection=False;Persist Security Info=True",
                                        }
                                  }
     };
     _localStorageContextConfig = LocalConfigService.GetConfig("StorageConfig.config", _defaultConfig);
 }