public static CAIDATTHUCDON GetQueryNoTracking(Transit transit)
 {
     CAIDATTHUCDON item = FrameworkRepository<CAIDATTHUCDON>.QueryNoTracking(transit.KaraokeEntities.CAIDATTHUCDONs).FirstOrDefault();
     if (item == null)
     {
         item = new CAIDATTHUCDON();
         item.NhomTextFontSize = 12;
         item.NhomTextFontStyle = (int)SomeEnum.FontStyles.Normal;
         item.NhomTextFontWeights = (int)SomeEnum.FontWeights.Normal;
         item.MonTextFontSize = 12;
         item.MonTextFontStyle = (int)SomeEnum.FontStyles.Normal;
         item.MonTextFontWeights = (int)SomeEnum.FontWeights.Normal;
         item.LoaiNhomTextFontSize = 12;
         item.LoaiNhomTextFontStyle = (int)SomeEnum.FontStyles.Normal;
         item.LoaiNhomTextFontWeights = (int)SomeEnum.FontWeights.Normal;
     }
     return item;
 }
 public CAIDATTHUCDON GetAll(Data.Transit transit)
 {
     CAIDATTHUCDON item = mKaraokeEntities.CAIDATTHUCDONs.FirstOrDefault();
     if (item == null)
     {
         item = new CAIDATTHUCDON();
         item.NhomTextFontSize = 12;
         item.NhomTextFontStyle = (int)SomeEnum.FontStyles.Normal;
         item.NhomTextFontWeights = (int)SomeEnum.FontWeights.Normal;
         item.MonTextFontSize = 12;
         item.MonTextFontStyle = (int)SomeEnum.FontStyles.Normal;
         item.MonTextFontWeights = (int)SomeEnum.FontWeights.Normal;
         item.LoaiNhomTextFontSize = 12;
         item.LoaiNhomTextFontStyle = (int)SomeEnum.FontStyles.Normal;
         item.LoaiNhomTextFontWeights = (int)SomeEnum.FontWeights.Normal;
         mKaraokeEntities.CAIDATTHUCDONs.AddObject(item);
         mKaraokeEntities.SaveChanges();
     }
     return item;
 }
 /// <summary>
 /// Create a new CAIDATTHUCDON object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="nhomTextFontSize">Initial value of the NhomTextFontSize property.</param>
 /// <param name="nhomTextFontStyle">Initial value of the NhomTextFontStyle property.</param>
 /// <param name="nhomTextFontWeights">Initial value of the NhomTextFontWeights property.</param>
 /// <param name="monTextFontSize">Initial value of the MonTextFontSize property.</param>
 /// <param name="monTextFontStyle">Initial value of the MonTextFontStyle property.</param>
 /// <param name="monTextFontWeights">Initial value of the MonTextFontWeights property.</param>
 /// <param name="loaiNhomTextFontSize">Initial value of the LoaiNhomTextFontSize property.</param>
 /// <param name="loaiNhomTextFontStyle">Initial value of the LoaiNhomTextFontStyle property.</param>
 /// <param name="loaiNhomTextFontWeights">Initial value of the LoaiNhomTextFontWeights property.</param>
 public static CAIDATTHUCDON CreateCAIDATTHUCDON(global::System.Int32 id, global::System.Double nhomTextFontSize, global::System.Int32 nhomTextFontStyle, global::System.Int32 nhomTextFontWeights, global::System.Double monTextFontSize, global::System.Int32 monTextFontStyle, global::System.Int32 monTextFontWeights, global::System.Double loaiNhomTextFontSize, global::System.Int32 loaiNhomTextFontStyle, global::System.Int32 loaiNhomTextFontWeights)
 {
     CAIDATTHUCDON cAIDATTHUCDON = new CAIDATTHUCDON();
     cAIDATTHUCDON.ID = id;
     cAIDATTHUCDON.NhomTextFontSize = nhomTextFontSize;
     cAIDATTHUCDON.NhomTextFontStyle = nhomTextFontStyle;
     cAIDATTHUCDON.NhomTextFontWeights = nhomTextFontWeights;
     cAIDATTHUCDON.MonTextFontSize = monTextFontSize;
     cAIDATTHUCDON.MonTextFontStyle = monTextFontStyle;
     cAIDATTHUCDON.MonTextFontWeights = monTextFontWeights;
     cAIDATTHUCDON.LoaiNhomTextFontSize = loaiNhomTextFontSize;
     cAIDATTHUCDON.LoaiNhomTextFontStyle = loaiNhomTextFontStyle;
     cAIDATTHUCDON.LoaiNhomTextFontWeights = loaiNhomTextFontWeights;
     return cAIDATTHUCDON;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the CAIDATTHUCDONs EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCAIDATTHUCDONs(CAIDATTHUCDON cAIDATTHUCDON)
 {
     base.AddObject("CAIDATTHUCDONs", cAIDATTHUCDON);
 }