static string GetPersistantName(PropertyInfo p) { var a = p.GetCustomAttribute<PersistedNameAttribute>(); return a != null ? a.Name : p.Name; }