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.Guidid);}// shared by all entity definitions, perhaps in ProxyExtensions assemblypublicinterfaceIEntityCollection<T>:ProxyExtensions.IReadOnlyQueryableSetBase<T>{Task<ProxyExtensions.IPagedCollection<T>>ExecuteAsync();TaskAddItemAsync(Titem,System.BooleandeferSaveChanges=false);Models.IEntityFetcher<T>this[System.Guidid]{get;}}publicinterfaceIEntityFetcher<TSource>{Task<T>ExecuteAsync();TExpand<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: