Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public BOBan(Transit transit)
 {
     mTransit   = transit;
     frBan      = new FrameworkRepository <BAN>(mTransit.KaraokeEntities, mTransit.KaraokeEntities.BANs);
     _CAIDATBAN = BOCaiDatBan.GetQueryNoTracking(mTransit);
 }