public SqlDbConnectionSetting(RepositoryConnectionSetting connection)
        {
            string connectionString = string.Empty;

            if (connection.ContainsKey(ConnectionSettingProperty.ConnectionString))
            {
                connectionString = (string)connection[ConnectionSettingProperty.ConnectionString];
            }
            this.Add(ConnectionSettingProperty.ConnectionString, connectionString);
            Validate();
        }
 public SpSiteCollectionConnectionSetting(RepositoryConnectionSetting connection)
 {
     if (connection.ContainsKey(ConnectionSettingProperty.SiteCollectionId))
     {
         Guid siteCollectionId = (System.Guid)connection[ConnectionSettingProperty.SiteCollectionId];
         this.Add(ConnectionSettingProperty.SiteCollectionId, siteCollectionId);
     }
     if (connection.ContainsKey(ConnectionSettingProperty.SiteCollectionUrl))
     {
         string siteCollectionUrl = (string)connection[ConnectionSettingProperty.SiteCollectionUrl];
         this.Add(ConnectionSettingProperty.SiteCollectionUrl, siteCollectionUrl);
     }
     Validate();
 }
 public SqlGlymaSecurityRepository(RepositoryConnectionSetting connectionSetting)
 {
     ConnectionSetting = new SqlDbConnectionSetting(connectionSetting);
 }
Esempio n. 4
0
 public SpSiteCollectionRepository(RepositoryConnectionSetting connectionSetting)
 {
     ConnectionSetting = new SpSiteCollectionConnectionSetting(connectionSetting);
 }