วันอาทิตย์ที่ 13 กรกฎาคม พ.ศ. 2557

MVC 5 AddOrUpdate

to use AddOrUpdate with entity command use this line on using (top of page)
using System.Data.Entity.Migrations;


if not  it will have only Add function for entities.