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
            }
        }
Beispiel #3
0
 public override void Process(EfProcessorContext ctx, EfPropertyDefinition definition)
 {
     ctx.Entity.Property(definition.Property.Name)
     .HasAnnotation(_annotation, _value);
 }
Beispiel #4
0
 public override bool PropertyMatches(EfProcessorContext ctx, EfPropertyDefinition definition) => true;