Пример #1
0
 public static SqlConnectionStringBuilder ToSqlConnectionString(this IAzConnectionStringBuilder @this)
 {
     if (@this is AzXmlConnectionStringBuilder)
     {
         throw new NotSupportedException(@this.GetType().FullName);
     }
     return(((AzSqlConnectionStringBuilder)@this).ToSqlConnectionString());
 }
Пример #2
0
        public AzManContext(IAzConnectionStringBuilder connectionString)
        {
            Guard.ArgumentIsNotNull(connectionString, nameof(connectionString));
            ConnectionString = connectionString;

            _azManStore = new AzAuthorizationStore();
            _azManStore.Initialize(0, connectionString.ConnectionString);

            Applications = new AzItemCollection <AzApplication>(null, GetApplications);
        }