public EgreetingUserBusiness(ILog logger, EgreetingContext context = null) : base(logger) { if (context == null) { context = new EgreetingContext(); } this.context = context; this.EgreetingUserRepository = new EgreetingUserRepository(context); repository = EgreetingUserRepository; }
public EgreetingUserBusiness(EgreetingContext context = null) : base() { if (context == null) { context = new DesignTimeDbContextFactory().CreateDbContext(null); } this.context = context; this.EgreetingUserRepository = new EgreetingUserRepository(context); repository = EgreetingUserRepository; }