code-first
EF Code First abstract relationship?
I have a class that inherits a base class to which another class has relationships. Example: Base class: Animal[详细]
2023-03-18 12:53 分类:问答When using ASP.NET MVC 3 with EF 4.1 Code First, I can only edit the main table, what am I doing wrong?
A brief description of what I am doing. I am creating a rather crude IS Asset tracking database using ASP开发者_StackOverflow MVC 3 and EF Code First approach. I can create a new asset. I can view the[详细]
2023-03-18 05:09 分类:问答EF Code First using non-Primary key to create one-to-many relationship
I have the following two entities: public class User { public int PKID { get; set; } public string Login { get; set; }[详细]
2023-03-17 07:31 分类:问答EF Code First Readonly column
I am using EF Code first with database first approach. \"withDatabase.SetInitializer(null);\" My table has two columns createddate and amendddate. They are managed by SQL Server using triggers. The[详细]
2023-03-16 20:49 分类:问答How can I map this navigation property?
I have two collections.The parent has many children, but also stores the most current child\'s id. public class Foo[详细]
2023-03-16 08:27 分类:问答EF4 One To Many Relationsihp,How do i refresh an object which has childs?
i made a code first model which has these POCO: public class Customer { public int CustomerId { get; set; }[详细]
2023-03-15 21:49 分类:问答EF 4.1 CF Fluent API mapping problemo
I\'m new to the fluent API. I have a legacy database which I can\'t alter at the moment. Simply, this is what I need to achieve:[详细]
2023-03-15 12:30 分类:问答EF - Code First - SQL Default Value getdate() gives error
I have a Priority class that has a datetime column. This column has a default value in SQL (after EF generates database and table , I changes default value of CreatedDate to getdate()). So I just want[详细]
2023-03-15 09:20 分类:问答EF Code First: Denormalize Inherited Type
I have the following entities: Human -Name -Age -Height -Weight SuperHuman : Human -SuperPower E开发者_高级运维F is creating the SuperHumans table with only the Power property and when querie[详细]
2023-03-15 04:16 分类:问答EF 4.1 One to Many relationship
I have what I consider a very simple data model and I\'m struggling badly with EF 4.1 CF. My data model has two classes:[详细]
2023-03-14 14:17 分类:问答