Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 MVC 中执行 SQL 函数?
我正在尝试将表返回函数的结果链接到我定义的类。我已经设置了连接字符串并创建了数据库上下文,public DbSet<Classname> variable{get; set;}如何将其链接到函数的结果
public DbSet<Classname> variable{get; set;}
你在使用实体框架吗?这是一篇你可以阅读的文章:
http://rationalgeek.com/blog/function-imports/