navigation-properties
EF 4.1 code-first: How to select an entity with it's collection-property's count
I have an entity named Tag with a navigation property (collection) named Articles. The Tag has a ignored-property named ArticleCount开发者_运维技巧 that used to save tha associated Article s count (ju[详细]
2023-04-07 12:10 分类:问答How do I save a NavigationProperty on an Entity from a different context?
I have two database tables, one for Events and one for RecurrenceRules. Events have a FK that points to a RecurrenceRuleID.[详细]
2023-04-06 01:10 分类:问答How can I set the value of a Navigation Property in the code behind?
I have an Entity called Cost, which has a required property of CostType The Cost class has a GetNew() method which sets all the Cost\'s defaults:[详细]
2023-03-30 12:02 分类:问答RadGrid Set Column Navigation Property
I\'m having a problem with my RadGrid...Can you show me how can i on my aspx file set the column value of my grid with a navigation property field?[详细]
2023-03-26 18:42 分类:问答How Do You Update a Navigation Property for an Entity With a Composite Key?
I\'m having a problem using WCF Data Services for an entity that has a composite primary key. I\'m using the Silverlight 4 Business Application Template and have created an Entity Data Model (EDM) aga[详细]
2023-03-24 02:28 分类:问答EF 4 Navigation Properties Question
Suppose I had TableA with 2 relationship references to TableB, where TableB is the primary key (let\'s say it has a PrimaryBKey and SecondaryBKey columns as the FK names in TableA).So I have entity:[详细]
2023-03-21 17:26 分类:问答EF Navigation Property Looping Issue
I currently have a db that looks something like this Person Table Id Name AddressLookupTypeId AddressLookupType Table[详细]
2023-03-13 17:04 分类:问答Navigation Property not loading when only the ID of the related object is populated
I am trying to establish a many-to-one relationship. The entity that represents the “many” has a navigation property pointing back to the parent entity. It looks like this:[详细]
2023-03-08 20:18 分类:问答How to update a set of entities?
Say I have resource A that contains a navigation property called \"Bs\" that points to a set of resource B.Given an instance of resource A, can I batch update the set of resource B through the navigat[详细]
2023-03-07 19:15 分类:问答Using Entity Framework navigation properties without creating lots of queries (avoiding N+1)
I\'ve been using Entity Framework Profiler to test my data access in an MVC project and have come accross several pages where I\'m making far more db queries than I need to because of N+1 problems.[详细]
2023-03-06 01:01 分类:问答