I\'m using EF 4.1 to build a domain model. I have a Task class with a Validate(string userCode) method and in it I want to ensure the user code maps to a valid user in the database, so:
I am developing with Entity Framework code first and SQL Server 2008. I want to support this common installation scenario:
The Model as below: public class User { public int Id public virtual ICollection<Tag> FollowingTags {get;set;}
Currently I have created a Base Entity type that all my entities will derive from. public abstract class BaseEntity
I am using EF 4.1 Code First and I am having trouble initializing my data the way I think I should be able to.In my code below, you will see that I have a model that starts with Client and it contains
Supose the model as below: class public Post { public int Id {get; set;} public virtual ICollection<Comment> Comments {get;set;}
I have a database that uses a custom model for recording lookup valus (i.e. states, types, etc.). So across all of the database tables, there are various columns called something like state_cdv_id whi
i am working on a legacy enterprise database that uses multiple columns to retrieve a part number the sql we currently use checks for a part number and if the part number is null then checks for the c
I have a self-referencing many-to-many relationship between users and managers that looks like this: public class User
I have an Entity Framework POCO class that is generated by a T4 Template. I am planning to use the generated class as my data contract.However, it has a few properties that don\'t need to be in the c