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