code-first
CreatedDate and AmendDate generated by the database
User class: public class User { public DateTime CreatedDate { get; private set; } public DateTime? AmendDate { get; private set; }[详细]
2023-04-12 06:57 分类:问答define scalar function with ef4.1 code first?
i have a function called distancebetween i wnat to define it in scalar valued function to call it by linq[详细]
2023-04-12 05:18 分类:问答Mapping POCOs in "schema.tablename" format in EF 4.1 code first, using dotconnect for Oracle
I have this entity: public class MyEntity { [Key] public int Id { get; set; } public string Name { get; set; }[详细]
2023-04-11 22:46 分类:问答Can you create sql views / stored procedure using Entity Framework 4.1 Code first approach
Entity Framework 4.1 Code First works great creating tables and relationships. Is it possible to create sql views or stored procedure using Code fi开发者_运维知识库rst approach? Any pointers regarding[详细]
2023-04-11 14:43 分类:问答unable to query EntityFramework shared dbcontext reliably
I\'m trying to share a simple DbContext with 4 DbSets among multiple repositories, each of my repositories inherit from this base class[详细]
2023-04-10 21:40 分类:问答EF Codefirst, One class, multiple tables with discriminator
I doing a little investigation and I am wondering if the following is possible. I am looking to create a BaseEntityWithDetails class that I can reuse 开发者_如何学运维for any type that I would like t[详细]
2023-04-10 11:52 分类:问答Working with a Model class that has a foreign/navigation key to itself
I am trying to develop a catalog project in ASP.NET MVC 3 and using EF Code first with an existing Database. There is a Categories table in m开发者_Go百科y database that points to itself. For that, I[详细]
2023-04-10 06:11 分类:问答Error using Code-first in EF with an Existing Database
I followed Using EF “Code First” with an Existing Database tutorial step by step but getting the following Error :[详细]
2023-04-09 22:11 分类:问答Entity Framework Code First DbContext Checks the ConnectionString During Compile?
It seems that the Code First DbContext really uses the given ConnectionString during compile? I don\'t even know how that is possible but to me it seems to be so. If I turn OFF my local SQL Server, I[详细]
2023-04-09 02:44 分类:问答Relationship Using Code first with Existing database
When defining a relationship between two types is it important to include a navigation property on both types, such as in the following example:[详细]
2023-04-09 01:59 分类:问答