Esempio n. 1
0
 protected override PersistableType GetPersistable()
 {
     if (InnerSpec.ContainsFacet <INotPersistedFacet>())
     {
         return(PersistableType.Transient);
     }
     if (InnerSpec.ContainsFacet <IProgramPersistableOnlyFacet>())
     {
         return(PersistableType.ProgramPersistable);
     }
     return(PersistableType.UserPersistable);
 }
Esempio n. 2
0
 public bool ContainsFacet(Type facetType)
 {
     return(InnerSpec.ContainsFacet(facetType));
 }
Esempio n. 3
0
 public bool ContainsFacet <T>() where T : IFacet
 {
     return(InnerSpec.ContainsFacet <T>());
 }