コード例 #1
0
 /// <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());
 }
コード例 #2
0
 /// <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());
 }