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); }
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); }