public IKeyConfiguredType WithKey(string id) { _key = id; KeyProperty = TypeOf <T> .PropertyInfo(id); return(this); }
public IKeyConfiguredType WithKey <TK>(Expression <Func <T, TK> > selector) { _key = TypeOf <T> .Property(selector).ToLowerInvariant(); KeyProperty = TypeOf <T> .PropertyInfo(selector); return(this); }