Example #1
0
        public override bool Equals(object obj)
        {
            PropertyConfiguerationKey otherEntity = (PropertyConfiguerationKey)obj;
            bool isNameSame = otherEntity.PropertyName.Equals(PropertyName, StringComparison.OrdinalIgnoreCase);
            bool isTypeSame = otherEntity.TypeFullName.Equals(TypeFullName, StringComparison.OrdinalIgnoreCase);

            return(isNameSame && isTypeSame);
        }
Example #2
0
        internal static bool IsTrackingEnabled(PropertyConfiguerationKey property, Type entityType)
        {
            if (typeof(IUnTrackable).IsAssignableFrom(entityType))
            {
                return(false);
            }

            TrackingConfigurationValue result = TrackingDataStore.PropertyConfigStore
                                                .GetOrAdd(property,
                                                          (x) =>
                                                          PropertyConfigValueFactory(property.PropertyName, entityType));

            return(result.Value);
        }