code-first
How can I populate a FK field using EF Code First?
I have a class Mailout with a Status that loo开发者_高级运维ks like this: public class Mailout {[详细]
2023-03-12 16:36 分类:问答One to one relation with EF 4.1 code first
My question is similar to this one : --> Many to one configuration using EF 4.1 code first There are some fluent API solutions on google, with overriding \"OnModelCreating\" method and manually sett[详细]
2023-03-12 05:17 分类:问答EF Code-First doesn't update Sets immediately
I\'m developing an ASP.NET MVC 3 website with Entity Framework Code-First. What\'s happening is that in the Index action, I get some TransactionJournal objects from the database, call a method called[详细]
2023-03-11 04:49 分类:问答Entity Framework 4.1 Code First - Define many-to-many using data annotations only
Is it possible to define a many-to-many relationship in Entity Framework 4.1 (Code First approach) using Data Annotations only, without model builder?[详细]
2023-03-10 22:45 分类:问答EF Code First not returning object as DynamicProxies until after the HTTP Request is complete
I\'m getting some strange behaviour from EF Code First when I add an object to the database and select it back from the database in the same HTTP request.[详细]
2023-03-10 05:37 分类:问答Have Entity Framework ignore derived types
in my current project I\'m using code first approach. I have a type called Task which is part of the model. I also have BackgroundTask derived from Task and UserAccountTask derived from BackgroundTas[详细]
2023-03-09 21:40 分类:问答how to reference controller function from another controller
Trying to learn ASP MVC coming from Linux/LAMP background (in other words I\'m a newb) ... For some reason I can\'t seem to use a function defined in a controller in another controller.[详细]
2023-03-07 22:36 分类:问答Sorting data using EF DbSet [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[详细]
2023-03-07 13:43 分类:问答In .net codefirst can I create classes dynamically?
Here is the scenario: I\'m writing a data loader which accepts binary data from certain DB2 catalog tables. I created POCOs for the DB2 table structures and am using Code First to create the SQLServe[详细]
2023-03-07 11:25 分类:问答EF 4.1 Mapping Problem
I have a class that have a relationship with itself: public class Person { public long ID { get; set; } public string Name { get; set; }[详细]
2023-03-07 10:45 分类:问答