Release: v6.1.0 #896
Replies: 1 comment
-
Hey folks - releasing v6.1.0 - this has a couple of breaking changes in it, especially around the EntityTableRepository visibility. EntityTableRepository can now be inherited!This means you can override just the methods you want. The basic ones to deal with are GetEntityAsync() and AsQueryable(). This allows you to do things like this: public class MyRepository : EntityTableRepository<MyEntity>
{
protected overide Task<TEntity> GetEntityAsync(string id, CancellationToken token = default)
=> DataSet.Include(x => x.Permissions).AsNoTracking().SingleOrDefaultAsync(x => x.Id == id, token);
} Which, in turn, makes it easier to do permission checks in your access control provider. There is a HttpClient for you to useYou can now use You can use string[].Contains(string) in Where clauses on remote tablesI've added the OData generation for IN support, which supports things like this: var ratings = new string[] { "G", "PG", "PG-13" }
var items = await remoteTable.Where(x => ratings.Contains(x.Rating)).ToListAsync(); This is translated into ODATA I've made the InMemoryRepository thread-safeThe InMemoryRepository used to use Dictionary<string,TEntity> to store the data in-memory. I've moved it over to using ConcurrentDictionary<string,TEntity> instead. This has improved stability in tests. NSwag support has been updated to v14.0.2If you are using NSwag, make sure you update your NSwag.AspNetCore library version! The v14 NSwag library comes with a bunch of new issues that are not related to Azure Mobile Apps, so make sure the problem you are experiencing is with the code in Azure Mobile Apps before opening an issue, please. I don't have time or the expertise to be debugging NSwag issues. This is not a required update, so feel free to continue using 6.0.8 if it works for you! |
Beta Was this translation helpful? Give feedback.
-
What's Changed
Full Changelog: 6.0.8...6.1.0
This discussion was created from the release 6.1.0.
Beta Was this translation helpful? Give feedback.
All reactions