/// <summary> /// Create a new tbBENHPHONGKHAM object. /// </summary> /// <param name="mABENH">Initial value of the MABENH property.</param> /// <param name="mAPHONGKHAM">Initial value of the MAPHONGKHAM property.</param> public static tbBENHPHONGKHAM CreatetbBENHPHONGKHAM(global::System.String mABENH, global::System.String mAPHONGKHAM) { tbBENHPHONGKHAM tbBENHPHONGKHAM = new tbBENHPHONGKHAM(); tbBENHPHONGKHAM.MABENH = mABENH; tbBENHPHONGKHAM.MAPHONGKHAM = mAPHONGKHAM; return tbBENHPHONGKHAM; }
/// <summary> /// Deprecated Method for adding a new object to the tbBENHPHONGKHAMs EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTotbBENHPHONGKHAMs(tbBENHPHONGKHAM tbBENHPHONGKHAM) { base.AddObject("tbBENHPHONGKHAMs", tbBENHPHONGKHAM); }
/// <summary> /// Thêm bệnh theo phòng khám vào database /// </summary> /// <param name="MABENH"></param> /// <param name="MANHOMBENH"></param> /// <param name="TENBENHTA"></param> /// <param name="TENBENHTV"></param> /// <param name="MOTA"></param> /// <param name="NGAYTAO"></param> /// <param name="TRANGTHAI"></param> public static void InsertBentheopk(string MABENH, string MAPHONGKHAM, DateTime NGAYTAO) { using (DB_HMS_Entities ds = new DB_HMS_Entities()) { tbBENHPHONGKHAM pk = new tbBENHPHONGKHAM(); pk.MABENH = MABENH; pk.MAPHONGKHAM = MAPHONGKHAM; pk.NGAYTAO = NGAYTAO; ds.AddTotbBENHPHONGKHAMs(pk); ds.SaveChanges(); } }