entity-framework
Flattening a loop with lookups into a single linq expression
In Type member support in LINQ-to-Entities? I was attempting to declare a class property to be queried in LINQ which ran into some issues.Here I will lay out the code inside the implementation in hope[详细]
2023-04-13 04:42 分类:问答Create a generic method where a expression can be passed as parameter to make dynamic queries
I am using EF. and the repository Pattern. The specific question is how can I write the GetPositionByCustomExpression below so that from the caller I can pass an expression, sometimes the expression[详细]
2023-04-13 04:31 分类:问答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 分类:问答Why doesn't a separately instantiated Func<T,bool> predicate not translate into SQL with Entity Framework?
I have an EF Code First Db context that I\'m using to query the database. I noticed some performance issues when passing in queries as Func<Product, bool>s from my Aggregate Repository and on in[详细]
2023-04-13 02:53 分类:问答Workaround for "LINQ to Entities does not recognize the method 'Int32 Parse(System.String)'
I\'ve got a table that looks like this: Foo FooId : int (PK) BarId : int Baz: bit etc. It has other columns in it (etc.), but I have a specific query that I want to run that projects some stati[详细]
2023-04-13 02:49 分类:问答EF 4.1 code-first: difference between EF generated sql and custom sql
I have a question about sql generated by Entity Framework and the hand-writed one. In my project, I have some entities (they aren\'t important really for this Q), for a simple example, when I use this[详细]
2023-04-13 01:52 分类:问答EF - Import a new table from DB and have it replace an existing one
So I need to update the model from the db. The issue is that I want the new table to replace an existing one.[详细]
2023-04-13 01:48 分类:问答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 分类:问答DataBinding from Entity Framework to Listivew dataSource
My entity is returning the following: class StoreClass{ public Entry GetStoreInfo(int id, UserInfo userInfo)[详细]
2023-04-13 00:54 分类:问答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 分类:问答