Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [DataContract]
- [Serializable]
- [KnownType(typeof(DynamicEntity))]
- public class DynamicEntity : IDynamicEntity, IDynamicMetaObjectProvider, INotifyPropertyChanged, ICloneable, IEquatable<DynamicEntity>
- {
- private const string EntityTypeName = "EntityType";
- private const string CreatedDateTimeName = "CreatedDate";
- private const string DeletedDateTimeName = "DeletedDate";
- private const string ChangedDateTimeName = "ChangedDate";
- private const string CreatedPersonName = "CreatedPerson";
- private const string DeletedPersonName = "DeletedPerson";
- private const string ChangedPersonName = "ChangedPerson";
- private const string EnabledName = "Enabled";
- private const string IdName = "ID";
- private const string RowVersionPropertyName = "RowVersion";
- private const string NamePropertyName = "Name";
- #region Properties
- [DataMember]
- public Guid EntityDefinitionId { get; set; }
- [DataMember]
- public IDictionary<string, DynamicEntityProperty> DynamicProperties { get; set; }= new Dictionary<string, DynamicEntityProperty>();
- public string EntityType => GetValue<string>(EntityTypeName);
- public string Name => GetName();
- #endregion
- #region CTOR
- public DynamicEntity()
- {
- }
- public DynamicEntity(Guid entityDefinitionId)
- {
- EntityDefinitionId = entityDefinitionId;
- }
- //Interface Implementations and other methods excluded
- }
Advertisement
Add Comment
Please, Sign In to add comment