c# - .NET OData Web api -
i have 2 ways use model generated entity framework. can not find use when , why. method 1 odataqueryoptions<key_result> options (passed function argument) private odataquerysettings settings = new odataquerysettings(); iqueryable<key_result> result; try { result = options.applyto(dataaccessfunction.key(keyids), settings) iqueryable<key_result>; } method 2 iqueryable<log> result; try { result = accessmodel.log; } so far, have used them in code without knowing correct or why both used. can't find material me too. also, first 1 using in odata endpoints created using table valued functions in sql while second 1 using endpoints created using simple tables , views. but if entity framework consistent, shouldn't matter. , should able use 2 approaches interchangeably. can used interchangeably, difference makes them preferred 1 situation (table value...