zzz projects Entity Framework 6 EF 6
Home EF Core Articles Knowledge Base Online Examples
  • Home
  • EF Core
  • Articles
  • Knowledge Base
  • Online Examples

Entity Framework 6 - Knowledge Base (KB)

6 results in tag: relationship

The code for one-to-many relationships in Entity Framework comes first.

I am having my first steps in EF 4.1. Because I was using NHibenate, the code first approach seems to me as the best one. I have problem with good mapping of one-to-many (or many-to-one) realtionship. Let's say I have 2 entities: ...class ClientModel { ...
entity-framework one-to-many relationship
asked by rideronthestorm

First, the ASP.NET EF code: During model creation, one or more validation problems were discovered.

Having some issues with my relationships. A Campaign has pages, a page has a CssFile. When I query all the Campaigns from the database the error (see below) gets thrown....public IQueryable<Campaign> FindAll() { return campaigns.Include(c => c.Pages)....
asp.net code-first entity-framework relationship
asked by Reinard

How to view database diagram in a Code First using localdb

I have a ...Code First... project with ...Entity Framework 5.0.0... using ...localdb... created in ...Visual Studio 2012 Ultimate.... Although I can see my class relations in a ...Class Diagram..., how to see a visual diagram of automatic generated databa...
database diagram entity-framework relationship visual-studio-2012
asked by Xaqron

EF6 Code First - may cause cycles or multiple cascade paths

I'm using EF6 Code First. I have two classes:...public class Player { [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)] [Key] public int Id { get; set; } [Required, MinLength(2, ErrorMessage = "Player name must be at least 2 ...
ef-code-first ef-migrations entity-framework relationship
asked by janiv

Entity Framework 6 code first fluent API one to one relation with both ends required

I want to implement One to One relation with both ends required with the fluent API in Entity Framework 6 code first....I have the principal class:...public class Student { public int Id{ get; set;} public string Name{ get; set;} public Stu...
ef-fluent-api entity-framework-6 one-to-one relationship
asked by pepe

Relationship (database first) in Entity Framework

I created a database, then applied dataase-first. Then it automatically imported the database to VS. Please tell me, when database-first automatically indicates relationship? Probably not, my data is not being imported. Could you tell me how to establish ...
c# entity-framework entity-framework-6 entity-framework-core relationship
asked by Кирилл Филободченко

Page 1 of 1
  • 1

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Save your entities 20× faster with EF Extensions
SaveChanges vs BulkSaveChanges

EF Extensions
Try for free now
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!