public CSpvSchemaReseau GetSpvServiceByName(CContexteDonnee ctx) { CFiltreData filtre = new CFiltreData(CSpvSchemaReseau.c_champLibelle + "=@1", Name); CSpvSchemaReseau spvService = new CSpvSchemaReseau(ctx); if (spvService.ReadIfExists(filtre)) { return(spvService); } return(null); }
public CSpvSchemaReseau GetSpvService(CContexteDonnee contexteDonnee) { if (m_nId == 0 && Name.Length > 0) { return(GetSpvServiceByName(contexteDonnee)); } CSpvSchemaReseau service = new CSpvSchemaReseau(contexteDonnee); if (service.ReadIfExists(m_nId)) { return(service); } return(null); }