public override void Process(EfProcessorContext ctx, EfPropertyDefinition definition) { if (_providers.All(e => e != ctx.DatabaseContext.Provider)) { ctx.Entity.Ignore(definition.Property.Name); // TODO is this correct or do we use the column name here } }
public override void Process(EfProcessorContext ctx, EfPropertyDefinition definition) { var k = ctx.Entity.HasAlternateKey(definition.Property.Name); if (_name != null) { k.HasName(_name); // TODO i dont think this matters } }
public override void Process(EfProcessorContext ctx, EfPropertyDefinition definition) { ctx.Entity.Property(definition.Property.Name) .HasAnnotation(_annotation, _value); }
public override bool PropertyMatches(EfProcessorContext ctx, EfPropertyDefinition definition) => true;