/// <summary>
 /// Create a new MENULOAINHOM object.
 /// </summary>
 /// <param name="loaiNhomID">Initial value of the LoaiNhomID property.</param>
 /// <param name="visual">Initial value of the Visual property.</param>
 /// <param name="deleted">Initial value of the Deleted property.</param>
 /// <param name="edit">Initial value of the Edit property.</param>
 public static MENULOAINHOM CreateMENULOAINHOM(global::System.Int32 loaiNhomID, global::System.Boolean visual, global::System.Boolean deleted, global::System.Boolean edit)
 {
     MENULOAINHOM mENULOAINHOM = new MENULOAINHOM();
     mENULOAINHOM.LoaiNhomID = loaiNhomID;
     mENULOAINHOM.Visual = visual;
     mENULOAINHOM.Deleted = deleted;
     mENULOAINHOM.Edit = edit;
     return mENULOAINHOM;
 }
Exemplo n.º 2
0
 public static IQueryable<MENUNHOM> GetAll(KaraokeEntities kara,MENULOAINHOM loaiNhom)
 {
     return kara.MENUNHOMs.Where(o=>o.Visual==true && o.Deleted==false&&o.LoaiNhomID==loaiNhom.LoaiNhomID);
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the MENULOAINHOMs EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToMENULOAINHOMs(MENULOAINHOM mENULOAINHOM)
 {
     base.AddObject("MENULOAINHOMs", mENULOAINHOM);
 }