コード例 #1
0
ファイル: ContextPopulator.cs プロジェクト: voltaiaj/Raptor
        public static BarberLicensee GetBarberLicensee(IRaptorContext context)
        {
            var barberLicensee = context.BarberLicensees.Add(new BarberLicensee());

            context.SaveChanges();
            return(barberLicensee);
        }
コード例 #2
0
ファイル: ContextPopulator.cs プロジェクト: voltaiaj/Raptor
        public static StylistLicensee GetStylistLicensee(IRaptorContext context)
        {
            var stylistLicensee = context.StylistLicensees.Add(new StylistLicensee());

            context.SaveChanges();
            return(stylistLicensee);
        }
コード例 #3
0
 public StylistLicenseeDataService(IRaptorContext context)
     : base(context.StylistLicensees)
 {
 }
コード例 #4
0
 public BarberLicenseeDataService(IRaptorContext context)
     : base(context.BarberLicensees)
 {
 }