code-first
Sorting Collection of One-To-Many relationship - Entity Framework Codefirst
I have a codefirst entity model which has two entities, City and Locality. City has one to many relation with Locality. Here is how they are related.[详细]
2023-04-04 00:45 分类:问答Tool to convert Entity Framework EDMX to Code First
Is there a tool to convert an edmx into code-first? I know there was talk of one appearing in a CTP a while back, but I can\'t find any updates relating to this.[详细]
2023-04-02 23:05 分类:问答Modifying One to Many relationships - Code First
I thought the following task would be seemingly easy to code, but I have spent a lot of time and not yet figured out the right way to solve it. Here is the scenario[详细]
2023-04-02 18:59 分类:问答How do I add a reference to another existing entity using code-first framework without first pulling the existing entity from the database
I\'m trying to attach an existing product to an auction, but am unable to do so without first pulling the product from the database.[详细]
2023-04-02 05:56 分类:问答Entity Framework 4.1 insert error
i have written a generic repository for my base windows which have a problem with. lets be more specific, there is a little poco class called Unit as following:[详细]
2023-04-02 00:55 分类:问答One to one relationship failing in entity framework code first
I am trying to build a One to one relationship EF v4.1 Code first. This is my code: public class System[详细]
2023-04-01 15:32 分类:问答mvc mini profiler problem
I\'m trying to get the mini profiler working with code first and am having a problem. I\'ve got the miniprofiler and miniprofiler.ef pa开发者_如何学Pythonckages from nuget and have added the[详细]
2023-04-01 14:01 分类:问答Asp.net MVC3 + Code First + Custom Membership Users and Provider classes?
I\'m using ASP.NET MVC3 with EF Code First.I\'m new to both tech, so please be gentle! I have a requirement that I will need additional properties for the User (such as company name, first/last name[详细]
2023-04-01 01:17 分类:问答How do I add a column to a table (schema upgrade) and have it map to an EF code first object
I have a database that I created for a site using Entity Framework 4.1 code first. I need to add a simple property to one of my entity classes, and add a corresponding (possibly nullable) column to th[详细]
2023-03-31 10:11 分类:问答Entity Framework Code First One-To-Many Relation Mapping with link table
I have a question about One-To-Many relationship between two tables when there is the link (join) table between.[详细]
2023-03-28 17:21 分类:问答