public ClientRepository() { context = new DB_Estimate(); Mapper.Initialize(cfg => { cfg.CreateMap <DAL_DB.Client, classes.Client>(); cfg.CreateMap <classes.Client, DAL_DB.Client>(); cfg.CreateMap <DAL_DB.Contract, classes.Contract>(); cfg.CreateMap <classes.Contract, DAL_DB.Contract>(); cfg.CreateMap <DAL_DB.Building, classes.Building>(); cfg.CreateMap <classes.Building, DAL_DB.Building>(); }); }
public BuildingRepository() { context = new DB_Estimate(); }
public ContractRepository() { context = new DB_Estimate(); }