Hi,
Please use this code may it will solve your problem:-
using(DatabaseEntities ndb = new DatabaseEntities())
{
M_Info mn = new M_Info()
{
mn.EDate = "m",
mn.LDay = "s",
mn.LHour = "s",
mn.MType = "slkd",
mn.SDate = "sajkc",
mn.Who = 1,
};
ndb.AddToM_Info(mn);
ndb.SaveChanges();
}