ef-code-first
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 分类:问答Entity Framework is deleting an Entry
I\'m fetching information from a webpage in two pages: First page: - Content c1 is created and a Translation c1.t1 is created;[详细]
2023-04-02 15:49 分类:问答Crystal Reports & EF CodeFirst relations
Note: I\'m new to Crystal reports, as I\'d always used ActiveReports at previous jobs, however my current customer is insisting on Crystal.[详细]
2023-04-02 10:54 分类:问答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 分类:问答DropCreateDatabaseIfModelChanges in Database.SetInitializer
I am using code-first pattern in entity framework V4.1. One of the things I came across which looks really weird is that whenever you make any changes in the model the database is just dropped and cre[详细]
2023-04-02 05:03 分类:问答Entity Framework 4.1: Code first error: "the model backing the context has changed since the database was created"
Im creating a database via a \"code first\" application, the sql server contains no databases. The application runs fine, creates the database and seeds the data i have defined in my initializer.[详细]
2023-04-02 04:15 分类:问答Relationships between tables mvc3
I\'m building website in MVC 3. i am using EF code first in existing database. my ET inside the model look like that:[详细]
2023-04-02 01:03 分类:问答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 分类:问答Problem regarding Many to Many relationship in EF code first
I have Products table and Customers table. Thus there is many to many relationship between them. This is my code to create that relationship using ModelBuilder:[详细]
2023-04-01 22:52 分类:问答ASP.Net MVC 3 with EF 4.1: Is it possible to switch from database first to code first
Net MVC 3 web application. I generated my models from an existing database using \"databas开发者_JS百科e first\". But now, I would prefer to use the \"code first\" paradigm. Is that possible at all? H[详细]
2023-04-01 21:04 分类:问答