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