I\'m trying to make a basic Address class, that many different other classes can have (a Company can have a billing address and a shipping address, each employee has a home address, etc...).I am doing
I have noticed some strange behavior when it comes to nullable foreign keys in my database. I have just started playing with the entity framework so I\'m probably doing something wrong, but I cannot f
I\'m having trouble passing view information from my Get/Create action to my view. Here are my three model classes;
Background: For various reasons I\'m creating a translation table in my sql server 2008 r2. (This question is not about whether that is a correct / good choice)
I have an IEnumerable and I want to insert all the items into an Entity Model collection. e.g.Looking for a way to do the following:
I use a GenericRepository which has the Get method : I would like to know if there is a loading difference between followingchunks of code:
I have two tables Users and Companies: public class User { // Properties public long Id { get; set; } public string FirstName { get; set; }
I\'m implementing a search that will take six possible (but not required) user inputs and then try to match them to some entities.
I have a class with quite a few includes in its \'default get method\', like this: _dbContext.Users .Include(c => c.PublicContact)
Is there a way to use generic methods with Entity Frameworks? For instance, I have the tables: TblPlan and TblTier. Can I pass these in a generic method and find the type? Each table have slightly di