コード例 #1
0
 public BOMenuNhom()
 {
     MenuNhom = new MENUNHOM();
     MenuLoaiNhom = new MENULOAINHOM();
 }
コード例 #2
0
 /// <summary>
 /// Create a new MENUNHOM object.
 /// </summary>
 /// <param name="nhomID">Initial value of the NhomID property.</param>
 /// <param name="sapXep">Initial value of the SapXep property.</param>
 /// <param name="sLMonChoPhepTonKho">Initial value of the SLMonChoPhepTonKho property.</param>
 /// <param name="sLMonKhongChoPhepTonKho">Initial value of the SLMonKhongChoPhepTonKho property.</param>
 /// <param name="sapXepMon">Initial value of the SapXepMon property.</param>
 /// <param name="giamGia">Initial value of the GiamGia property.</param>
 /// <param name="visual">Initial value of the Visual property.</param>
 /// <param name="deleted">Initial value of the Deleted property.</param>
 public static MENUNHOM CreateMENUNHOM(global::System.Int32 nhomID, global::System.Int32 sapXep, global::System.Int32 sLMonChoPhepTonKho, global::System.Int32 sLMonKhongChoPhepTonKho, global::System.Int32 sapXepMon, global::System.Int32 giamGia, global::System.Boolean visual, global::System.Boolean deleted)
 {
     MENUNHOM mENUNHOM = new MENUNHOM();
     mENUNHOM.NhomID = nhomID;
     mENUNHOM.SapXep = sapXep;
     mENUNHOM.SLMonChoPhepTonKho = sLMonChoPhepTonKho;
     mENUNHOM.SLMonKhongChoPhepTonKho = sLMonKhongChoPhepTonKho;
     mENUNHOM.SapXepMon = sapXepMon;
     mENUNHOM.GiamGia = giamGia;
     mENUNHOM.Visual = visual;
     mENUNHOM.Deleted = deleted;
     return mENUNHOM;
 }
コード例 #3
0
 public static IQueryable<MENUMON> GetAll(KaraokeEntities kara,MENUNHOM nhom)
 {
     return kara.MENUMONs.Where(o => o.NhomID == nhom.NhomID && o.Deleted==false);
 }        
コード例 #4
0
 /// <summary>
 /// Deprecated Method for adding a new object to the MENUNHOMs EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToMENUNHOMs(MENUNHOM mENUNHOM)
 {
     base.AddObject("MENUNHOMs", mENUNHOM);
 }
コード例 #5
0
 public BOMenuMon()
 {
     MenuMon = new MENUMON();
     MenuNhom = new MENUNHOM();
 }