c# - Entityframework Table name is appended with 'es' on savechanges -
i'm facing strange error using entityframe work. have model entity called "userinfo" , db table name "userinfo". when i'm called savechanges() in entity frame work. i'm getting strange error invalid object name 'dbo.userinfoes'.
i searched entire solution, see whether miss typed "userinfoes" , didnt find anything. please me solve issue. how "es" append along it?
[table("userinfo")] public class userinfo { public int id { get; set; } public string field1 { get; set; } public string field2 { get; set; } public string field3 { get; set; } public string field4 { get; set; } public int field5 { get; set; } }
you need disable pluralize table names linq sql designer.
here steps http://msdn.microsoft.com/en-us/library/bb384507.aspx
Comments
Post a Comment