protected static Type propertyKeyType(Type Type)
{
PropertyInfo[] properies = Type.GetProperties();
foreach (PropertyInfo property in properies)
if (Attribute.IsDefined(property, typeof(PropertyKeyRecord)))
return property.PropertyType;
return null;
}