Example #1
0
        public virtual IList <StaticTextEntity> FindByNameAndScope(
            string name, string dictionaryScopeName
            )
        {
            using (var session = GetSession())
            {
                var staticTextRepository = new StaticTextRepository(session);

                var resultList = staticTextRepository.FindByNameAndScope(
                    name, dictionaryScopeName
                    );

                return(resultList);
            }
        }
Example #2
0
        public virtual void DeleteAll(
            string name,
            string dictionaryScopeName
            )
        {
            using (var session = GetSession())
            {
                var staticTextRepository = new StaticTextRepository(session);

                var staticTextEntities = staticTextRepository.FindByNameAndScope(
                    name, dictionaryScopeName
                    );

                staticTextRepository.DeleteAll(staticTextEntities);
                session.Flush();
            }
        }