/// <summary> /// Nhập vào thông tin của sinh liệu /// </summary> /// <param name="MASINHLIEU"></param> /// <param name="MABENHNHAN"></param> /// <param name="MAYTA"></param> /// <param name="MACH"></param> /// <param name="NHIPTHO"></param> /// <param name="NHIETDO"></param> /// <param name="HUYETAP"></param> /// <param name="CHIEUCAO"></param> /// <param name="CANNANG"></param> /// <param name="VONGBUNG"></param> /// <param name="NGAYTAO"></param> /// <param name="TRANGTHAI"></param> public static void InsertInformation(string MASINHLIEU, string MABENHAN, string MAYTA, string MACH, string NHIPTHO, string NHIETDO,string HUYETAP, string CHIEUCAO, string CANNANG, string VONGBUNG, DateTime NGAYTAO, Boolean TRANGTHAI) { using (DB_HMS_Entities dk= new DB_HMS_Entities()) { tbSINHLIEU sl = new tbSINHLIEU(); sl.MASINHLIEU = MASINHLIEU; sl.MABENHAN = MABENHAN; sl.MAYTA = MAYTA; sl.MACH = MACH; sl.NHIPTHO = NHIPTHO; sl.NHIETDO = NHIETDO; sl.HUYETAP = HUYETAP; sl.CHIEUCAO = CHIEUCAO; sl.CANNANG = CANNANG; sl.VONGBUNG = VONGBUNG; sl.NGAYTAO = NGAYTAO; sl.TRANGTHAI = TRANGTHAI; dk.AddTotbSINHLIEUx(sl); dk.SaveChanges(); } }
/// <summary> /// Deprecated Method for adding a new object to the tbSINHLIEUx EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTotbSINHLIEUx(tbSINHLIEU tbSINHLIEU) { base.AddObject("tbSINHLIEUx", tbSINHLIEU); }
/// <summary> /// Create a new tbSINHLIEU object. /// </summary> /// <param name="mASINHLIEU">Initial value of the MASINHLIEU property.</param> public static tbSINHLIEU CreatetbSINHLIEU(global::System.String mASINHLIEU) { tbSINHLIEU tbSINHLIEU = new tbSINHLIEU(); tbSINHLIEU.MASINHLIEU = mASINHLIEU; return tbSINHLIEU; }