public CAIDATMAYINHOADON GetAll(Data.Transit transit) { CAIDATMAYINHOADON item = mKaraokeEntities.CAIDATMAYINHOADONs.FirstOrDefault(); if (item == null) { item = new CAIDATMAYINHOADON(); item.HeaderTextString1 = ""; item.HeaderTextString2 = ""; item.HeaderTextString3 = ""; item.HeaderTextString4 = ""; item.HeaderTextFontSize1 = 12; item.HeaderTextFontSize2 = 12; item.HeaderTextFontSize3 = 12; item.HeaderTextFontSize4 = 12; item.HeaderTextFontStyle1 = (int)SomeEnum.FontStyles.Normal; item.HeaderTextFontStyle2 = (int)SomeEnum.FontStyles.Normal; item.HeaderTextFontStyle3 = (int)SomeEnum.FontStyles.Normal; item.HeaderTextFontStyle4 = (int)SomeEnum.FontStyles.Normal; item.HeaderTextFontWeights1 = (int)SomeEnum.FontWeights.Normal; item.HeaderTextFontWeights2 = (int)SomeEnum.FontWeights.Normal; item.HeaderTextFontWeights3 = (int)SomeEnum.FontWeights.Normal; item.HeaderTextFontWeights4 = (int)SomeEnum.FontWeights.Normal; item.FooterTextString1 = ""; item.FooterTextString2 = ""; item.FooterTextString3 = ""; item.FooterTextString4 = ""; item.FooterTextFontSize1 = 12; item.FooterTextFontSize2 = 12; item.FooterTextFontSize3 = 12; item.FooterTextFontSize4 = 12; item.FooterTextFontStyle1 = (int)SomeEnum.FontStyles.Normal; item.FooterTextFontStyle2 = (int)SomeEnum.FontStyles.Normal; item.FooterTextFontStyle3 = (int)SomeEnum.FontStyles.Normal; item.FooterTextFontStyle4 = (int)SomeEnum.FontStyles.Normal; item.FooterTextFontWeights1 = (int)SomeEnum.FontWeights.Normal; item.FooterTextFontWeights2 = (int)SomeEnum.FontWeights.Normal; item.FooterTextFontWeights3 = (int)SomeEnum.FontWeights.Normal; item.FooterTextFontWeights4 = (int)SomeEnum.FontWeights.Normal; item.SumanyFontSize = 12; item.SumanyFontStyle = (int)SomeEnum.FontStyles.Normal; item.SumanyFontWeights = (int)SomeEnum.FontWeights.Normal; item.SumanyFontSizeBig = 12; item.SumanyFontStyleBig = (int)SomeEnum.FontStyles.Normal; item.SumanyFontWeightsBig = (int)SomeEnum.FontWeights.Normal; item.TitleTextFontSize = 12; item.TitleTextFontStyle = (int)SomeEnum.FontStyles.Normal; item.TitleTextFontWeights = (int)SomeEnum.FontWeights.Normal; mKaraokeEntities.CAIDATMAYINHOADONs.AddObject(item); mKaraokeEntities.SaveChanges(); } return item; }
public static CAIDATMAYINHOADON GetQueryNoTracking(KaraokeEntities kara) { CAIDATMAYINHOADON item = FrameworkRepository<CAIDATMAYINHOADON>.QueryNoTracking(kara.CAIDATMAYINHOADONs).FirstOrDefault(); if (item == null) { item = new CAIDATMAYINHOADON(); item.HeaderTextString1 = ""; item.HeaderTextString2 = ""; item.HeaderTextString3 = ""; item.HeaderTextString4 = ""; item.HeaderTextFontSize1 = 12; item.HeaderTextFontSize2 = 12; item.HeaderTextFontSize3 = 12; item.HeaderTextFontSize4 = 12; item.HeaderTextFontStyle1 = (int)System.Drawing.FontStyle.Regular; item.HeaderTextFontStyle2 = (int)System.Drawing.FontStyle.Regular; item.HeaderTextFontStyle3 = (int)System.Drawing.FontStyle.Regular; item.HeaderTextFontStyle4 = (int)System.Drawing.FontStyle.Regular; item.HeaderTextFontWeights1 = (int)SomeEnum.FontWeights.Normal; item.HeaderTextFontWeights2 = (int)SomeEnum.FontWeights.Normal; item.HeaderTextFontWeights3 = (int)SomeEnum.FontWeights.Normal; item.HeaderTextFontWeights4 = (int)SomeEnum.FontWeights.Normal; item.FooterTextString1 = ""; item.FooterTextString2 = ""; item.FooterTextString3 = ""; item.FooterTextString4 = ""; item.FooterTextFontSize1 = 12; item.FooterTextFontSize2 = 12; item.FooterTextFontSize3 = 12; item.FooterTextFontSize4 = 12; item.FooterTextFontStyle1 = (int)System.Drawing.FontStyle.Regular; item.FooterTextFontStyle2 = (int)System.Drawing.FontStyle.Regular; item.FooterTextFontStyle3 = (int)System.Drawing.FontStyle.Regular; item.FooterTextFontStyle4 = (int)System.Drawing.FontStyle.Regular; item.FooterTextFontWeights1 = (int)SomeEnum.FontWeights.Normal; item.FooterTextFontWeights2 = (int)SomeEnum.FontWeights.Normal; item.FooterTextFontWeights3 = (int)SomeEnum.FontWeights.Normal; item.FooterTextFontWeights4 = (int)SomeEnum.FontWeights.Normal; item.SumanyFontSize = 12; item.SumanyFontStyle = (int)System.Drawing.FontStyle.Regular; item.SumanyFontWeights = (int)SomeEnum.FontWeights.Normal; item.SumanyFontSizeBig = 12; item.SumanyFontStyleBig = (int)System.Drawing.FontStyle.Regular; item.SumanyFontWeightsBig = (int)SomeEnum.FontWeights.Normal; item.TitleTextFontSize = 12; item.TitleTextFontStyle = (int)System.Drawing.FontStyle.Regular; item.TitleTextFontWeights = (int)SomeEnum.FontWeights.Normal; } return item; }
/// <summary> /// Create a new CAIDATMAYINHOADON object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="headerTextFontSize1">Initial value of the HeaderTextFontSize1 property.</param> /// <param name="headerTextFontSize2">Initial value of the HeaderTextFontSize2 property.</param> /// <param name="headerTextFontSize3">Initial value of the HeaderTextFontSize3 property.</param> /// <param name="headerTextFontSize4">Initial value of the HeaderTextFontSize4 property.</param> /// <param name="headerTextFontStyle1">Initial value of the HeaderTextFontStyle1 property.</param> /// <param name="headerTextFontStyle2">Initial value of the HeaderTextFontStyle2 property.</param> /// <param name="headerTextFontStyle3">Initial value of the HeaderTextFontStyle3 property.</param> /// <param name="headerTextFontStyle4">Initial value of the HeaderTextFontStyle4 property.</param> /// <param name="headerTextFontWeights1">Initial value of the HeaderTextFontWeights1 property.</param> /// <param name="headerTextFontWeights2">Initial value of the HeaderTextFontWeights2 property.</param> /// <param name="headerTextFontWeights3">Initial value of the HeaderTextFontWeights3 property.</param> /// <param name="headerTextFontWeights4">Initial value of the HeaderTextFontWeights4 property.</param> /// <param name="footerTextFontSize1">Initial value of the FooterTextFontSize1 property.</param> /// <param name="footerTextFontSize2">Initial value of the FooterTextFontSize2 property.</param> /// <param name="footerTextFontSize3">Initial value of the FooterTextFontSize3 property.</param> /// <param name="footerTextFontSize4">Initial value of the FooterTextFontSize4 property.</param> /// <param name="footerTextFontStyle1">Initial value of the FooterTextFontStyle1 property.</param> /// <param name="footerTextFontStyle2">Initial value of the FooterTextFontStyle2 property.</param> /// <param name="footerTextFontStyle3">Initial value of the FooterTextFontStyle3 property.</param> /// <param name="footerTextFontStyle4">Initial value of the FooterTextFontStyle4 property.</param> /// <param name="footerTextFontWeights1">Initial value of the FooterTextFontWeights1 property.</param> /// <param name="footerTextFontWeights2">Initial value of the FooterTextFontWeights2 property.</param> /// <param name="footerTextFontWeights3">Initial value of the FooterTextFontWeights3 property.</param> /// <param name="footerTextFontWeights4">Initial value of the FooterTextFontWeights4 property.</param> /// <param name="sumanyFontSize">Initial value of the SumanyFontSize property.</param> /// <param name="sumanyFontStyle">Initial value of the SumanyFontStyle property.</param> /// <param name="sumanyFontWeights">Initial value of the SumanyFontWeights property.</param> /// <param name="sumanyFontSizeBig">Initial value of the SumanyFontSizeBig property.</param> /// <param name="sumanyFontStyleBig">Initial value of the SumanyFontStyleBig property.</param> /// <param name="sumanyFontWeightsBig">Initial value of the SumanyFontWeightsBig 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="itemFontSize">Initial value of the ItemFontSize property.</param> /// <param name="itemTextFontStyle">Initial value of the ItemTextFontStyle property.</param> /// <param name="itemTextFontWeights">Initial value of the ItemTextFontWeights property.</param> /// <param name="logoHeight">Initial value of the LogoHeight property.</param> /// <param name="logoWidth">Initial value of the LogoWidth property.</param> public static CAIDATMAYINHOADON CreateCAIDATMAYINHOADON(global::System.Int32 id, global::System.Double headerTextFontSize1, global::System.Double headerTextFontSize2, global::System.Double headerTextFontSize3, global::System.Double headerTextFontSize4, global::System.Int32 headerTextFontStyle1, global::System.Int32 headerTextFontStyle2, global::System.Int32 headerTextFontStyle3, global::System.Int32 headerTextFontStyle4, global::System.Int32 headerTextFontWeights1, global::System.Int32 headerTextFontWeights2, global::System.Int32 headerTextFontWeights3, global::System.Int32 headerTextFontWeights4, global::System.Double footerTextFontSize1, global::System.Double footerTextFontSize2, global::System.Double footerTextFontSize3, global::System.Double footerTextFontSize4, global::System.Int32 footerTextFontStyle1, global::System.Int32 footerTextFontStyle2, global::System.Int32 footerTextFontStyle3, global::System.Int32 footerTextFontStyle4, global::System.Int32 footerTextFontWeights1, global::System.Int32 footerTextFontWeights2, global::System.Int32 footerTextFontWeights3, global::System.Int32 footerTextFontWeights4, global::System.Double sumanyFontSize, global::System.Int32 sumanyFontStyle, global::System.Int32 sumanyFontWeights, global::System.Double sumanyFontSizeBig, global::System.Int32 sumanyFontStyleBig, global::System.Int32 sumanyFontWeightsBig, 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 itemFontSize, global::System.Int32 itemTextFontStyle, global::System.Int32 itemTextFontWeights, global::System.Int32 logoHeight, global::System.Int32 logoWidth) { CAIDATMAYINHOADON cAIDATMAYINHOADON = new CAIDATMAYINHOADON(); cAIDATMAYINHOADON.ID = id; cAIDATMAYINHOADON.HeaderTextFontSize1 = headerTextFontSize1; cAIDATMAYINHOADON.HeaderTextFontSize2 = headerTextFontSize2; cAIDATMAYINHOADON.HeaderTextFontSize3 = headerTextFontSize3; cAIDATMAYINHOADON.HeaderTextFontSize4 = headerTextFontSize4; cAIDATMAYINHOADON.HeaderTextFontStyle1 = headerTextFontStyle1; cAIDATMAYINHOADON.HeaderTextFontStyle2 = headerTextFontStyle2; cAIDATMAYINHOADON.HeaderTextFontStyle3 = headerTextFontStyle3; cAIDATMAYINHOADON.HeaderTextFontStyle4 = headerTextFontStyle4; cAIDATMAYINHOADON.HeaderTextFontWeights1 = headerTextFontWeights1; cAIDATMAYINHOADON.HeaderTextFontWeights2 = headerTextFontWeights2; cAIDATMAYINHOADON.HeaderTextFontWeights3 = headerTextFontWeights3; cAIDATMAYINHOADON.HeaderTextFontWeights4 = headerTextFontWeights4; cAIDATMAYINHOADON.FooterTextFontSize1 = footerTextFontSize1; cAIDATMAYINHOADON.FooterTextFontSize2 = footerTextFontSize2; cAIDATMAYINHOADON.FooterTextFontSize3 = footerTextFontSize3; cAIDATMAYINHOADON.FooterTextFontSize4 = footerTextFontSize4; cAIDATMAYINHOADON.FooterTextFontStyle1 = footerTextFontStyle1; cAIDATMAYINHOADON.FooterTextFontStyle2 = footerTextFontStyle2; cAIDATMAYINHOADON.FooterTextFontStyle3 = footerTextFontStyle3; cAIDATMAYINHOADON.FooterTextFontStyle4 = footerTextFontStyle4; cAIDATMAYINHOADON.FooterTextFontWeights1 = footerTextFontWeights1; cAIDATMAYINHOADON.FooterTextFontWeights2 = footerTextFontWeights2; cAIDATMAYINHOADON.FooterTextFontWeights3 = footerTextFontWeights3; cAIDATMAYINHOADON.FooterTextFontWeights4 = footerTextFontWeights4; cAIDATMAYINHOADON.SumanyFontSize = sumanyFontSize; cAIDATMAYINHOADON.SumanyFontStyle = sumanyFontStyle; cAIDATMAYINHOADON.SumanyFontWeights = sumanyFontWeights; cAIDATMAYINHOADON.SumanyFontSizeBig = sumanyFontSizeBig; cAIDATMAYINHOADON.SumanyFontStyleBig = sumanyFontStyleBig; cAIDATMAYINHOADON.SumanyFontWeightsBig = sumanyFontWeightsBig; cAIDATMAYINHOADON.TitleTextFontSize = titleTextFontSize; cAIDATMAYINHOADON.TitleTextFontStyle = titleTextFontStyle; cAIDATMAYINHOADON.TitleTextFontWeights = titleTextFontWeights; cAIDATMAYINHOADON.InfoTextFontSize = infoTextFontSize; cAIDATMAYINHOADON.InfoTextFontStyle = infoTextFontStyle; cAIDATMAYINHOADON.InfoTextFontWeights = infoTextFontWeights; cAIDATMAYINHOADON.ItemFontSize = itemFontSize; cAIDATMAYINHOADON.ItemTextFontStyle = itemTextFontStyle; cAIDATMAYINHOADON.ItemTextFontWeights = itemTextFontWeights; cAIDATMAYINHOADON.LogoHeight = logoHeight; cAIDATMAYINHOADON.LogoWidth = logoWidth; return cAIDATMAYINHOADON; }
/// <summary> /// Deprecated Method for adding a new object to the CAIDATMAYINHOADONs EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCAIDATMAYINHOADONs(CAIDATMAYINHOADON cAIDATMAYINHOADON) { base.AddObject("CAIDATMAYINHOADONs", cAIDATMAYINHOADON); }