//-----------------------------------------------------------------------------------------------------------------------------------------------------
 public bool IsKeyProperty(IPropertyMetadata property)
 {
     return (property.Name.EqualsIgnoreCase("Id") || property.HasContractAttribute<PropertyContract.KeyAttribute>());
 }