Exemple #1
0
 private void EvictCachedCollections(IType[] types, object id, ISessionFactoryImplementor factory)
 {
     for (int i = 0; i < types.Length; i++)
     {
         if (types[i].IsCollectionType)
         {
             factory.EvictCollection(((CollectionType)types[i]).Role, id);
         }
         else if (types[i].IsComponentType)
         {
             IAbstractComponentType actype = (IAbstractComponentType)types[i];
             EvictCachedCollections(actype.Subtypes, id, factory);
         }
     }
 }
		private void EvictCachedCollections(IType[] types, object id, ISessionFactoryImplementor factory)
		{
			for (int i = 0; i < types.Length; i++)
			{
				if (types[i].IsCollectionType)
				{
					factory.EvictCollection(((CollectionType)types[i]).Role, id);
				}
				else if (types[i].IsComponentType)
				{
					IAbstractComponentType actype = (IAbstractComponentType)types[i];
					EvictCachedCollections(actype.Subtypes, id, factory);
				}
			}
		}