public IdAssigner(MemberInfo member, IIdGeneration generation) { _generator = generation.Build <TId>(); _getter = LambdaBuilder.Getter <TDoc, TId>(member); _setter = LambdaBuilder.Setter <TDoc, TId>(member); }
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); }