public static CacheMode? GetCacheMode(HbmCacheMode cacheMode)
		{
			switch (cacheMode)
			{
				case HbmCacheMode.Get:
					return CacheMode.Get;
				case HbmCacheMode.Ignore:
					return CacheMode.Ignore;
				case HbmCacheMode.Normal:
					return CacheMode.Normal;
				case HbmCacheMode.Put:
					return CacheMode.Put;
				case HbmCacheMode.Refresh:
					return CacheMode.Refresh;
				default:
					throw new ArgumentOutOfRangeException("cacheMode");
			}
		}
Пример #2
0
        public static CacheMode?ToCacheMode(this HbmCacheMode cacheMode)
        {
            switch (cacheMode)
            {
            case HbmCacheMode.Get:
                return(CacheMode.Get);

            case HbmCacheMode.Ignore:
                return(CacheMode.Ignore);

            case HbmCacheMode.Normal:
                return(CacheMode.Normal);

            case HbmCacheMode.Put:
                return(CacheMode.Put);

            case HbmCacheMode.Refresh:
                return(CacheMode.Refresh);

            default:
                throw new ArgumentOutOfRangeException("cacheMode");
            }
        }