Using Entity Framework 6.1, I have a scenario in which the entities I am going to query should be mapped to SQL table-valued-functions. During the model creation we can use the .ToTable("TableName") method to map the entities to tables (or views). Is there a way in which I can get the entities to be mapped to functions passing a constant parameter which only depends on the DataContext?
Thank you.
这是一些支持EF6 Code First中的表值函数支持的有用链接,以及有关如何在实体框架代码优先方法中使用表值函数以及执行此操作的nuget包EntityFramework.CodeFirstStoreFunctions的一些有用链接。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.