/// <summary> /// 得到存储类型 /// </summary> /// <param name="storageClass"></param> /// <returns></returns> internal static StorageClass GetStorageClass( EInfrastructure.Core.Configuration.Ioc.Plugs.Storage.Enumerations.StorageClass storageClass) { return(StorageClassList.Where(x => x.Key.Id == storageClass.Id).Select(x => x.Value).FirstOrDefault()); }
/// <summary> /// 得到存储类型 /// </summary> /// <param name="storageClass"></param> /// <returns></returns> internal static EInfrastructure.Core.Configuration.Ioc.Plugs.Storage.Enumerations.StorageClass GetStorageClass( string storageClass) { return(StorageClassList.Where(x => x.Value.ToString() == storageClass).Select(x => x.Key).FirstOrDefault()); }