public CovCakeData() { CovCakeDataContext = new covCakeDataContext(); AbonnementProjetDataAccess = new AbonnementProjetDataAccess(CovCakeDataContext); MessageDataAccess = new MessageDataAccess(CovCakeDataContext); ProjetDataAccess = new ProjetDataAccess(CovCakeDataContext); UserDataAccess = new UserProfileDataAccess(CovCakeDataContext, ProjetDataAccess, MessageDataAccess); AlbumDataAccess = new AlbumDataAccess(CovCakeDataContext); PaysDataAccess = new PaysDataAccess(CovCakeDataContext); TransportDataAccess = new TransportDataAccess(CovCakeDataContext); ResidenceDataAccess = new ResidenceDataAccess(CovCakeDataContext); DepartementDataAcess = new DepartementDataAccess(CovCakeDataContext); AlerteDataAccess = new AlerteDataAccess(CovCakeDataContext); }
public UserProfileDataAccess(ProjetDataAccess projetDataAccess, MessageDataAccess messageDataAccess) { _dataContext = new covCakeDataContext(); _projetDataAccess = projetDataAccess; _messageDataAccess = messageDataAccess; }
public UserProfileDataAccess(covCakeDataContext dataBase, ProjetDataAccess projetDataAccess, MessageDataAccess messageDataAccess) { _dataContext = dataBase; _projetDataAccess = projetDataAccess; _messageDataAccess = messageDataAccess; }