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: one-to-one

Entity Framework 4 Code First demonstrates how to declare a one-to-one connection (POCO)

How to declare a one to one relationship using Entity Framework 4 Code First (POCO)?...I found ...this question (one-to-one relationships in Entity Framework 4) ..., but the article that the answer references was not useful (there is one line of code that...
c# ef-code-first entity-framework one-to-one poco
asked by Paul Hiles

In SQL Server, how do you make a true one-to-one relationship?

I have two tables ...tableA... and ...tableB..., I set ...tableB...'s primary key as foreign key which references ...tableA...'s primary. But when I use Entity Framework database-first, the model is 1 to 0..1. ...How does one create a one-to-one relations...
entity-framework one-to-one sql sql-server
asked by James

Create one to one relationship by using entity framework database first

In ...EF Code First..., we can create one-to-one relationship by coding like this:...public class User { public int UserID {get;set;} public string Name {get;set;} public int UserDetailID {get;set;} public UserDetail Detail {get;set;} } public class Use...
ef-code-first ef-database-first entity-framework one-to-one
asked by yan

One to one optional relationship using Entity Framework Fluent API

We want to use one to one optional relationship using Entity Framework Code First. We have two entities....public class PIIUser { public int Id { get; set; } public int? LoyaltyUserDetailId { get; set; } public LoyaltyUserDetail LoyaltyUserDe...
c# ef-code-first ef-fluent-api entity-framework one-to-one
asked by İlkay İlknur

AspNetUsers' ID as Foreign key in separate table, one-to-one relationship

I have looked up and down, tried all the different and various ways of being able to store a foreign key of the AspNetUser table in a separate Customer table. I'm still new at ASP.NET and the Entity Framework, but I've read quite a few posts and documenta...
asp.net c# database entity-framework one-to-one
asked by JayEz

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

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!