public HistoryObjectDesc(Type type)
{
PropertiesKeyTitleFunc = new Dictionary<string, GetDicKeyTitle> ();
ObjectType = type;
ObjectName = type.Name;
var att = type.GetCustomAttributes (typeof(OrmSubjectAttribute), true);
if (att.Length > 0 && !String.IsNullOrWhiteSpace((att [0] as OrmSubjectAttribute).ObjectName))
DisplayName = (att [0] as OrmSubjectAttribute).ObjectName;
else
DisplayName = ObjectName;
}