Exemplo n.º 1
0
 static void AddOrUpdateDataAccess(WindowsAuthData windowsAuthForUser, string tenantId)
 {
     var dataAccess = windowsAuthForUser
         .Databases
         .FirstOrDefault(x => x.TenantId == tenantId);
     if (dataAccess == null)
     {
         dataAccess = new ResourceAccess
         {
             TenantId = tenantId
         };
         windowsAuthForUser.Databases.Add(dataAccess);
     }
     dataAccess.ReadOnly = false;
     dataAccess.Admin = true;
 }
Exemplo n.º 2
0
 protected bool Equals(ResourceAccess other)
 {
     return(Admin.Equals(other.Admin) && string.Equals(TenantId, other.TenantId) && ReadOnly.Equals(other.ReadOnly));
 }
Exemplo n.º 3
0
		protected bool Equals(ResourceAccess other)
		{
			return Admin.Equals(other.Admin) && string.Equals(TenantId, other.TenantId) && ReadOnly.Equals(other.ReadOnly);
		}