Example #1
0
        static void Main(string[] args)
        {
            MapperConfiguration mapperConfiguration = new MapperConfiguration();

            var mapper = mapperConfiguration.CreateMap().Mapper;

            var core    = new Core <FirmDbContext>("IT_Firm_DB_Data");
            var context = (FirmDbContext)core.Context;

            var empMethods = new Employees_Methods(mapper, ref context);

            Core coreEngine = new Core(mapper, ref context, empMethods);

            coreEngine.Work();
        }
Example #2
0
 public Core(Mapper mapper, ref FirmDbContext context, Employees_Methods employees_Methods)
 {
     this.Mapper     = mapper;
     this.Context    = context;
     this.EmpMethods = employees_Methods;
 }