Posts

Showing posts with the label dbcontext

private MyDbContext _appContext => (MyDBContext)_context;?

private MyDbContext _appContext => (MyDBContext)_context;? Please can some explain what does this code means ? private MyDbContext _appContext => (MyDBContext)_context; Thanks alot you declare a private property _appContext which returns _context as MyDBContext – Pierre 4 mins ago _appContext _context as MyDBContext By calling _appContext.Anything() you actually call ((MyDBContext)_context).Anything() – Pierre 2 mins ago _appContext.Anything() ((MyDBContext)_context).Anything() 1 Answer 1 Basically its an Expression-bodied member introduced in C# 6 Expression body definitions l...