Source/NFX/DataAccess/Distributed/Parcel.cs
/// <summary>
/// Obtains parcel cache name from either it's associated DataParcelAttribute or
///  if not defined, from parcel type full name
/// </summary>
Obtains parcel cache name from either it's associated DataParcelAttribute or
if not defined, from parcel type full name
Obtains parcel cache name from either it ' s associated DataParcelAttribute or if not defined from parcel type full name
public static string GetParcelCacheTableName(Type tparcel)
            {
              if (tparcel==null || !typeof(Parcel).IsAssignableFrom(tparcel))
                  throw new DistributedDataAccessException(StringConsts.ARGUMENT_ERROR+"Parcel.GetParcelCacheTableName(tparcel=null|!Parcel)");
              string result = null;
              var attr = DataParcelAttribute.getParcelAttrCore(tparcel);
              if (attr!=null)
               result = attr.CacheTableName;
              if (result.IsNullOrWhiteSpace())
               result = tparcel.FullName;
              return result;
            }
public static string GetParcelCacheTableName ( Type tparcel ) { if ( tparcel == null || ! typeof ( Parcel ) . IsAssignableFrom ( tparcel ) ) throw new DistributedDataAccessException ( StringConsts . ARGUMENT_ERROR + " " ) ; string result = null ; var attr = DataParcelAttribute . getParcelAttrCore ( tparcel ) ; if ( attr != null ) result = attr . CacheTableName ; if ( result . IsNullOrWhiteSpace ( ) ) result = tparcel . FullName ; return result ; }
Obtains parcel cache name from either it's associated DataParcelAttribute or
if not defined, from parcel type full name
Obtains parcel cache name from either it ' s associated DataParcelAttribute or if not defined from parcel type full name
tparcel
Type