You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code generator emits a lot of boilerplate that could be captured in a base interface, and thus simplify the task of mocking a collection proxy. For example,
// unique to my modelpublicpartialinterfaceIItemCollection:IEntityCollection<Models.IItem>{
Models.IEntityFetcher<Models.IItem>GetById(System.Guid id);}// shared by all entity definitions, perhaps in ProxyExtensions assemblypublicinterfaceIEntityCollection<T>: ProxyExtensions.IReadOnlyQueryableSetBase<T>{Task<ProxyExtensions.IPagedCollection<T>>ExecuteAsync();
Task AddItemAsync(Titem, System.Boolean deferSaveChanges=false);
Models.IEntityFetcher<T> this[System.Guid id]{get;}}publicinterfaceIEntityFetcher<TSource>{Task<T>ExecuteAsync();
T Expand<TTarget>(System.Linq.Expressions.Expression<System.Func<TSource,TTarget>>navigationPropertyAccessor);}
Is the team amenable to this kind of refactoring?
The text was updated successfully, but these errors were encountered:
@jeffMSFT Thank you for the issue. Yes, we may be open to this at some point in the future. We just aren't in a position right now to take pull requests and review them.
The code generator emits a lot of boilerplate that could be captured in a base interface, and thus simplify the task of mocking a collection proxy. For example,
...could become
Is the team amenable to this kind of refactoring?
The text was updated successfully, but these errors were encountered: