I\'d like to create a model with a \'client generated\' GUID as the primary key. I want the Guid to be auto-generated, but NOT on the DB, so I know the ID before I persist it, important for my domain
I am working on an application using Entity Framework 4.1 with DbContext API, in a disconnected environment. I have two basic entities, Person and Degree. Degree has a non-mandatory one-to-many relati
I\'m using EF4.1 with MVC3 and I need an override to prevent EF from creating a db if it doesn\'t exist. Instead of creating a new db I would like to catch the error and report that the initial catalo
Is there a wa开发者_运维百科y to prevent Entity Framework Code-First from deleting my database diagrams when it is re-building my database?Without using DropCreateDatabaseIfModelChanges to create your
I have an EF 4.1 POCO class with Vehicle and VehicleOwner. When i load eager load the VehicleOwner including the Vehicles, the Vehicles still load the VehicleOwner and when you with a Mapper it ends
I\'m using Entity Framework and a Model class, DonationForm, wrapped by a view model class \"CreateDonationForm\".
I have a Class called public partial class Contact { public int Id { get; set; } public string Title { get; set; }
First of all, I am new to ASP.Net MVC 3, and I am also using EF 4.1. I have a complex object, something similar to let\'s say a Product object containing a Category object. So we have Product.Categor
I am trying to delete the project from the database but I get the following exception: \"DbUpdateException was unhandled\"
I have the following tables开发者_如何学JAVA Users ---------- UserId (int) Name (varchar) Stores ----------