c# - Entity Framework 6 - Enforce asynchronous queries, compile time prevent synchronous calls -
with move ef6.1, our goal use exclusivity async/await options speaking our data sets. while porting our previous linq2sql, there many .tolist(), .firstordefault(), , .count()'s. know can search , fix all, nice if could, @ compile time, prevent functions being permitted build. have have creative idea on how accomplish this? if compiler warnings thrown (such use of obsolete attribute).
you can use .net compiler platform write diagnostic , code fix these patterns , provide warnings/errors.
you implement syntax transformation automatically change these constructs - though effort might more expensive doing hand.
Comments
Post a Comment