Exemple #1
0
        public IKeyConfiguredType WithKey(string id)
        {
            _key        = id;
            KeyProperty = TypeOf <T> .PropertyInfo(id);

            return(this);
        }
Exemple #2
0
        public IKeyConfiguredType WithKey <TK>(Expression <Func <T, TK> > selector)
        {
            _key = TypeOf <T> .Property(selector).ToLowerInvariant();

            KeyProperty = TypeOf <T> .PropertyInfo(selector);

            return(this);
        }