entity-framework-4
How to effectively refresh many to many relationship
Lets say I have entity A, which have many to many relationship with another entities of type A. So on entity A, I have collection of A. And lets say I have to \"update\" this relationships according t[详细]
2023-04-13 03:31 分类:问答Selecting & Updating Many-To-Many in Entity Framework 4
I am relatively new to the EF and have the following entity model above which consists of an Asset and a Country. An Asset can belong in many countries and thus has a many-to-many rela开发者_StackOv[详细]
2023-04-13 01:21 分类:问答How to make imported functions have same param order as the SP?
I Use EF+Ria service for SL app. I generated EF Model from DB. Evenytime when DB have some changes, I update model from DB. But I got nightmare for imported function param order. Because evenytime whe[详细]
2023-04-13 00:49 分类:问答how can to instruct entity framework not to update a property of a model
I am using Asp.net MVC and Entity framework(Below code is just for demo) I have a model like below public class Person[详细]
2023-04-13 00:48 分类:问答How to declare the result of query in LINQ to Entities
I just started using MS entity framework and have the following problem with LINQ. I will simplify my problem to make it clearer; let\'s say that I have three tables in SQL Server database:[详细]
2023-04-13 00:15 分类:问答EF 4.1 what is the best way to use enums and be able to query them on columns?
Here I have my code, but I wonder if this will leave me do easy queries against the enum columns. By the way, do you see something else I can improve in this code?[详细]
2023-04-12 22:23 分类:问答Repopulate Entity Framework Navigation properties
Hi I have an MVC app I\'m calling a stored procedure from. The reason I\'m using a stored procedure is because the query is quite complex and it already exists so I may as well use it.[详细]
2023-04-12 22:12 分类:问答Better way to query a page of data and get total count in entity framework 4.1?
Currently when I need to run a query that will be used w/ paging I do it something like this: //Setup query (Typicall开发者_如何学运维y much more complex)[详细]
2023-04-12 20:08 分类:问答EF4 inserting NULLs to SQL Server tables via Function Import [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this po[详细]
2023-04-12 19:06 分类:问答Is SaveChanges() Necessary with Function Imports (Stored Procedures)?
Is SaveChanges() necessary with function imports (stored procedures)? Example: void foo(Product product)[详细]
2023-04-12 18:41 分类:问答