Exemplo n.º 1
0
 public IdAssigner(MemberInfo member, IIdGeneration generation)
 {
     _generator = generation.Build <TId>();
     _getter    = LambdaBuilder.Getter <TDoc, TId>(member);
     _setter    = LambdaBuilder.Setter <TDoc, TId>(member);
 }
Exemplo n.º 2
0
 public IdAssigner(MemberInfo member, IIdGeneration generation, IDocumentSchema schema)
 {
     _generator = generation.Build <TId>(schema);
     _getter    = LambdaBuilder.Getter <TDoc, TId>(member);
     _setter    = LambdaBuilder.Setter <TDoc, TId>(member);
 }
Exemplo n.º 3
0
 public DocumentMappingExpression <T> IdStrategy(IIdGeneration idStrategy)
 {
     _builder.Alter = mapping => mapping.IdStrategy = idStrategy;
     return(this);
 }
Exemplo n.º 4
0
 public ListStore(IIdGeneration <int> idGeneration)
 {
     _idGeneration = idGeneration;
     _data         = new List <TEntity>();
 }