public static CAIDATMAYINBEP GetQueryNoTracking(KaraokeEntities kara)
 {
     CAIDATMAYINBEP item = FrameworkRepository<CAIDATMAYINBEP>.QueryNoTracking(kara.CAIDATMAYINBEPs).FirstOrDefault();
     if (item == null)
     {
         item = new CAIDATMAYINBEP();
         item.TitleTextFontSize = 12;
         item.TitleTextFontStyle = (int)System.Drawing.FontStyle.Regular;
         item.TitleTextFontWeights = (int)SomeEnum.FontWeights.Normal;
         item.InfoTextFontSize = 12;
         item.InfoTextFontStyle = (int)System.Drawing.FontStyle.Regular;
         item.InfoTextFontWeights = (int)SomeEnum.FontWeights.Normal;
         item.ItemTextFontSize = 12;
         item.ItemTextFontStyle = (int)System.Drawing.FontStyle.Regular;
         item.ItemTextFontWeights = (int)SomeEnum.FontWeights.Normal;
         item.SumTextFontSize = 12;
         item.SumTextFontStyle = (int)System.Drawing.FontStyle.Regular;
         item.SumTextFontWeights = (int)SomeEnum.FontWeights.Normal;
     }
     return item;
 }
        public CAIDATMAYINBEP GetAll(Data.Transit transit)
        {
            CAIDATMAYINBEP item = mKaraokeEntities.CAIDATMAYINBEPs.FirstOrDefault();
            if (item == null)
            {
                item = new CAIDATMAYINBEP();
                item.TitleTextFontSize = 12;
                item.TitleTextFontStyle = (int)SomeEnum.FontStyles.Normal;
                item.TitleTextFontWeights = (int)SomeEnum.FontWeights.Normal;
                item.InfoTextFontSize = 12;
                item.InfoTextFontStyle = (int)SomeEnum.FontStyles.Normal;
                item.InfoTextFontWeights = (int)SomeEnum.FontWeights.Normal;
                item.ItemTextFontSize = 12;
                item.ItemTextFontStyle = (int)SomeEnum.FontStyles.Normal;
                item.ItemTextFontWeights = (int)SomeEnum.FontWeights.Normal;
                item.SumTextFontSize = 12;
                item.SumTextFontStyle = (int)SomeEnum.FontStyles.Normal;
                item.SumTextFontWeights = (int)SomeEnum.FontWeights.Normal;
                mKaraokeEntities.CAIDATMAYINBEPs.AddObject(item);
                mKaraokeEntities.SaveChanges();
            }

            return item;
        }
 /// <summary>
 /// Create a new CAIDATMAYINBEP object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="titleTextFontSize">Initial value of the TitleTextFontSize property.</param>
 /// <param name="titleTextFontStyle">Initial value of the TitleTextFontStyle property.</param>
 /// <param name="titleTextFontWeights">Initial value of the TitleTextFontWeights property.</param>
 /// <param name="infoTextFontSize">Initial value of the InfoTextFontSize property.</param>
 /// <param name="infoTextFontStyle">Initial value of the InfoTextFontStyle property.</param>
 /// <param name="infoTextFontWeights">Initial value of the InfoTextFontWeights property.</param>
 /// <param name="itemTextFontSize">Initial value of the ItemTextFontSize property.</param>
 /// <param name="itemTextFontStyle">Initial value of the ItemTextFontStyle property.</param>
 /// <param name="itemTextFontWeights">Initial value of the ItemTextFontWeights property.</param>
 /// <param name="sumTextFontSize">Initial value of the SumTextFontSize property.</param>
 /// <param name="sumTextFontStyle">Initial value of the SumTextFontStyle property.</param>
 /// <param name="sumTextFontWeights">Initial value of the SumTextFontWeights property.</param>
 public static CAIDATMAYINBEP CreateCAIDATMAYINBEP(global::System.Int32 id, global::System.Double titleTextFontSize, global::System.Int32 titleTextFontStyle, global::System.Int32 titleTextFontWeights, global::System.Double infoTextFontSize, global::System.Int32 infoTextFontStyle, global::System.Int32 infoTextFontWeights, global::System.Double itemTextFontSize, global::System.Int32 itemTextFontStyle, global::System.Int32 itemTextFontWeights, global::System.Double sumTextFontSize, global::System.Int32 sumTextFontStyle, global::System.Int32 sumTextFontWeights)
 {
     CAIDATMAYINBEP cAIDATMAYINBEP = new CAIDATMAYINBEP();
     cAIDATMAYINBEP.ID = id;
     cAIDATMAYINBEP.TitleTextFontSize = titleTextFontSize;
     cAIDATMAYINBEP.TitleTextFontStyle = titleTextFontStyle;
     cAIDATMAYINBEP.TitleTextFontWeights = titleTextFontWeights;
     cAIDATMAYINBEP.InfoTextFontSize = infoTextFontSize;
     cAIDATMAYINBEP.InfoTextFontStyle = infoTextFontStyle;
     cAIDATMAYINBEP.InfoTextFontWeights = infoTextFontWeights;
     cAIDATMAYINBEP.ItemTextFontSize = itemTextFontSize;
     cAIDATMAYINBEP.ItemTextFontStyle = itemTextFontStyle;
     cAIDATMAYINBEP.ItemTextFontWeights = itemTextFontWeights;
     cAIDATMAYINBEP.SumTextFontSize = sumTextFontSize;
     cAIDATMAYINBEP.SumTextFontStyle = sumTextFontStyle;
     cAIDATMAYINBEP.SumTextFontWeights = sumTextFontWeights;
     return cAIDATMAYINBEP;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the CAIDATMAYINBEPs EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCAIDATMAYINBEPs(CAIDATMAYINBEP cAIDATMAYINBEP)
 {
     base.AddObject("CAIDATMAYINBEPs", cAIDATMAYINBEP);
 }