//------------------------------------------------------- public static CReleveSite GetNewReleve(CReleveDb db, CSite site) { CReleveSite releve = new CReleveSite(db); releve.CreateNew(); releve.DateReleve = DateTime.Now; releve.Site = site; releve.InitEquipementsReleves(); return(releve); }
//--------------------------------------------- public T GetEntiteTimos <T>(string strId) where T : CEntiteLieeATimos { CReleveDb db = Database as CReleveDb; if (db != null && strId != null) { return(db.GetEntiteTimos <T>(strId)); } return(default(T)); }
//------------------------------------------------------- public CReleveSite(CReleveDb db) : this((CMemoryDb)db) { }
//------------------------------------------------------- public CReleveEquipement(CReleveDb db) : this((CMemoryDb)db) { }