I have a Content Type called Activity that inherits form Event and i have a list instance called Activities and its content type is Activity When SPMetal Generates the entities i see the following classes
public partial class Activity : Event and public partial class ActivitiesActivity : Activity
when i write the following code to save a new entity
public void Save(Activity activity)
{
var context = new MACEntitiesDataContext("http://localhost:8088");
var activities = context.GetList<Activity>("Activity");
activities.InsertOnSubmit(activity);
context.SubmitChanges();
}
it throws
Columns associated with mappings have been deleted/renamed