Questions tagged [ctp4]

21 questions
1
vote
1 answer

EF CTP4 Missing columns in generated table

I'm having an issue that i just can't seem to figure out. Lets say I have 2 Entities defined in my domain; Person and Document. Below is the definition for Document : public class Document { public int Id { get; set; } [Required] …
avsomeren
  • 11
  • 1
1
vote
0 answers

Using Entity Framework Code First CTP4 how to map an entity to multiple tables?

Using CTP4 and Code First, is it possible to map a single entity to two tables (using a 1-1 relationship between the two tables)? If so, how? MSDN: "How to: Define a Model with a Single Entity Mapped to Two Tables"…
Ian Mercer
  • 38,490
  • 8
  • 97
  • 133
0
votes
1 answer

How do I use Entities CTP4 model first and then add data annotations such as validation rules?

I'm creating a model, which is then generating SQL to create the database. Now I have some great entity classes in a single .designer.cs file. However, I then want to add [Required] to some of the fields that I've created model-first. I've created…
Rob
  • 1,297
  • 2
  • 16
  • 30
0
votes
1 answer

Making Object Context (EF4/CTP4) thread safe?

I am using the latest release of entity framework 4 - CTP 4 for my project in ASP.NET 4. This version (EF4-CTP 4) gives an option to build the Object Context (or DBContext) using code first approach. This approach has its own drawback that its time…
Abhay Naik
  • 410
  • 3
  • 15
0
votes
1 answer

How to pre-generate views with code-only CTP4?

We have a performance issue when using CTP 4 and code-only (no .edmx model file). Is it possible to pre-generate "views" when using code-only and CTP 4?
Lars Hiim
  • 11
  • 1
0
votes
1 answer

Code First CTP4: How to map these two entities

Let's say that I have two entities, Team and Match. In every Match, there are two teams, the HomeTeam and the AwayTeam. A Team can have many matches, but HomeTeam and AwayTeam can only have one team each. Sometimes Team is a HomeTeam, and sometimes…
Buginator
  • 846
  • 11
  • 18
1
2