ef-code-first
Ef Code first One to one relationship with id as foreign
I\'m traying to do a mapping withOne to One relationship with id as \"foreign\", I can\'t change the database[详细]
2023-04-07 12:55 分类:问答EF 4.1 code-first: How to select an entity with it's collection-property's count
I have an entity named Tag with a navigation property (collection) named Articles. The Tag has a ignored-property named ArticleCount开发者_运维技巧 that used to save tha associated Article s count (ju[详细]
2023-04-07 12:10 分类:问答Order navigation properties when using Include and/or Select methods with EF 4.1 Code-First?
This is the second step of a question explained here: EF 4.1 code-first: How to load related data (parent-child-grandchild)?.[详细]
2023-04-07 12:06 分类:问答Entity Framework CodeFirst Multiple type of users
I have task to build application for user registration. I have 3 types of user (profiles) 1. \"Normal\" user[详细]
2023-04-06 23:37 分类:问答Entity Framework Code First - One-to-Many with a join/link table
Is it possible to create a One-to-Many relationship with Code First that uses a link/join table between them?[详细]
2023-04-06 22:59 分类:问答Is it possible to use EF codefirst database initialisers in Migrator .NET migrations?
I\'m using Migrator.NET to manage schema changes on our production environment. Because I\'ve been using EF code-first, all development to the database has been incremental to the code-first classes a[详细]
2023-04-06 21:02 分类:问答Entity Framework Code First - Foreign Key to non primary key field
I have two tables that look like this: dbo.ReviewType ReviewTypeId INT PRIMARY KEY ShortName CHAR(1) - Unique Index[详细]
2023-04-06 09:23 分类:问答Entity Framework code first Inheritance Issue
I have code first implementation for flowing hierarchy, BaseContact{ Public int Id{get;set;} public string Name{get;set;}[详细]
2023-04-06 07:36 分类:问答If I don't explicitly map a column in code-first EF to an existing DB, will that column still work?
I have the following mapping defined: protected override void OnModelCreating(DbModelBuilder modelBuilder)[详细]
2023-04-06 07:21 分类:问答Referencing EntityFramework 4.1 namespace in MVC3 Razor View
I am trying to reference the System.Data.Entity.Validation (EF 4.1 version) namespace inside of a shared View in my MVC3 project. I\'ve been able to reference other external libraries using:[详细]
2023-04-06 01:44 分类:问答