示例#1
0
 protected abstract Expression <Func <JoinedItem <T, TT>, bool> > GetSelectorByPrimaryKey(PrimaryKey key);
示例#2
0
        protected JoinedItem <T, TT> FindByPrimaryKeyInternal(PrimaryKey key, bool singleCulture = false)
        {
            var selector = GetSelectorByPrimaryKey(key);

            return(FindInternal(singleCulture).Where(selector).FirstOrDefault());
        }
示例#3
0
 protected virtual bool Delete(PrimaryKey key)
 {
     DeleteAllSubItems(Find(key));
     return(_rep.Delete(key));
 }
示例#4
0
 protected JoinedItem <T, TT> FindByPrimaryKey(PrimaryKey key)
 {
     return(FindByPrimaryKeyInternal(key));
 }