private static PropertyInfo GetPropertyInfo(IPrimaryKeyFinder keyfinder) { return(keyfinder.GetPrimaryKeyInfo(typeof(TItem)) ?? IdConventionIdentifierInfo <TItem> .GetKeyPropertyByName()); }
public PrimaryKeyIdentifierInfo(IPrimaryKeyFinder keyfinder) : base(GetPropertyInfo(keyfinder)) { }