简体   繁体   中英

Entity Framework 6.1 map entities to table-valued-functions

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.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM