This question is locked. New answers and comments are not allowed.
I have built a fluent context model using code only and I can create table no problem after calling the context.UpdateSchema().
However when I try to insert some data into a table after I call UpdateSchema() the data does not get inserted in tot he table.
However when I try to insert some data into a table after I call UpdateSchema() the data does not get inserted in tot he table.
public static void InsertManufacturerInfo(string ProjectFilePath, string ProjectName)
{
using (ProjectSqlCeFluentContext db = new ProjectSqlCeFluentContext(ProjectFilePath, ProjectName))
{
//Create and/or update schema before adding any data....
db.UpdateSchema();
Platform p = new Platform
{
Manufacturer = "some name here",
PlatformType = "my platform"
}
db.Add(p);
db.SaveChanges();
}
}
Does anybody know what the problem is?
Help much appreciated.
Thanks