I like to insert a row into my table using dotconnect for MySQL entity framework.
The table contains to fields:
index column (int)
name column (varchar)
Here is my code:
Code: Select all
// insert new value
int NextID = pe.Categories.Select(c => c.CategoryIndex).Max() + 1;
ProductsModel.Category objCategory = new ProductsModel.Category() { CategoryIndex = NextID, CategoryName = category };
pe.AddToCategories(objCategory);
pe.SaveChanges();
The result in the database table is"W/Ö Emulsion"
Does anyone know why it cuts the string after the slash? I dont get it..."W/"
Thank you.
Best regards,
Philipp