Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        public EgreetingUserBusiness(EgreetingContext context = null)
            : base()
        {
            if (context == null)
            {
                context = new DesignTimeDbContextFactory().CreateDbContext(null);
            }
            this.context = context;

            this.EgreetingUserRepository = new EgreetingUserRepository(context);
            repository = EgreetingUserRepository;
        }