I'm trying Entity Developer 5.8 (for now the express one).
Creating model from database, that is an SQL Server Compact 3.5, everything seems good.
I Have a entity key that is COMPANYID (guid) and other fields, all nullable.
When i run this code:
Code: Select all
LocalDBDataContext ctx = new LocalDBDataContext();
COMPANY company = new COMPANY()
{
COMPANYID = Guid.NewGuid(),
NAME = "CompanyName"
};
ctx.COMPANIES.InsertOnSubmit(company);
ctx.SubmitChanges();
dbMonitor show a p3 parameter with DataType: String and In Value: NULL (that seems right for me).Parameterized query 'INSERT INTO T_COMPANY (COMPANYID, NAME, INTERNALCODE) VALUES (@p1, @p2, @p3)' expects a parameter value which was not supplied. Parameter name: p3
Any idea ?
Thanks