public static CAIDATBAN GetQueryNoTracking(Transit transit) { CAIDATBAN item = FrameworkRepository<CAIDATBAN>.QueryNoTracking(transit.KaraokeEntities.CAIDATBANs).FirstOrDefault(); if (item == null) { item = new CAIDATBAN(); item.TableWidth = (decimal)0.0735294000; item.TableHeight = (decimal)0.0938086000; item.TableFontSize = 12; item.TableFontStyle = (int)SomeEnum.FontStyles.Normal; item.TableFontWeights = (int)SomeEnum.FontWeights.Normal; } return item; }
public CAIDATBAN GetAll(Data.Transit transit) { CAIDATBAN item = fr.Query().FirstOrDefault(); if (item == null) { item = new CAIDATBAN(); item.TableWidth = (decimal)0.0735294000; item.TableHeight = (decimal)0.0938086000; item.TableFontStyle = (int)SomeEnum.FontStyles.Normal; item.TableFontWeights = (int)SomeEnum.FontWeights.Normal; fr.AddObject(item); fr.Commit(); } return item; }
/// <summary> /// Create a new CAIDATBAN object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="tableWidth">Initial value of the TableWidth property.</param> /// <param name="tableHeight">Initial value of the TableHeight property.</param> /// <param name="tableFontSize">Initial value of the TableFontSize property.</param> /// <param name="tableFontStyle">Initial value of the TableFontStyle property.</param> /// <param name="tableFontWeights">Initial value of the TableFontWeights property.</param> public static CAIDATBAN CreateCAIDATBAN(global::System.Int32 id, global::System.Decimal tableWidth, global::System.Decimal tableHeight, global::System.Double tableFontSize, global::System.Int32 tableFontStyle, global::System.Int32 tableFontWeights) { CAIDATBAN cAIDATBAN = new CAIDATBAN(); cAIDATBAN.ID = id; cAIDATBAN.TableWidth = tableWidth; cAIDATBAN.TableHeight = tableHeight; cAIDATBAN.TableFontSize = tableFontSize; cAIDATBAN.TableFontStyle = tableFontStyle; cAIDATBAN.TableFontWeights = tableFontWeights; return cAIDATBAN; }
/// <summary> /// Deprecated Method for adding a new object to the CAIDATBANs EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCAIDATBANs(CAIDATBAN cAIDATBAN) { base.AddObject("CAIDATBANs", cAIDATBAN); }
public BOBan(Transit transit) { mTransit = transit; frBan = new FrameworkRepository<BAN>(mTransit.KaraokeEntities, mTransit.KaraokeEntities.BANs); _CAIDATBAN = BOCaiDatBan.GetQueryNoTracking(mTransit); }