Beispiel #1
0
 public static async Task <DbSetPermit> GetDbSetPermissions(this IAuthorizer authorizer, RunTimeMetadata metadata, string dbSetName)
 {
     return(new DbSetPermit()
     {
         dbSetName = dbSetName,
         canAddRow = await authorizer.CanAccessOperation(metadata, dbSetName, MethodType.Insert),
         canEditRow = await authorizer.CanAccessOperation(metadata, dbSetName, MethodType.Update),
         canDeleteRow = await authorizer.CanAccessOperation(metadata, dbSetName, MethodType.Delete),
         canRefreshRow = await authorizer.CanAccessOperation(metadata, dbSetName, MethodType.Refresh)
     });
 }