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

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