Inheritance: AbstractSearchFilter
Ejemplo n.º 1
0
        public void SearchParentByName() {
            var searchFilter = new ParentSearchFilter();

            searchFilter.Name = "A";
            // searchFilter.Name = "Parent";

            var dc = Repository<Parent>.CreateDetachedCriteria();
            searchFilter.Apply(dc);

            var parents = Repository<Parent>.FindAll(dc);

            foreach(var parent in parents)
                Console.WriteLine(parent.ToString(true));
        }
Ejemplo n.º 2
0
        public void SearchParentByName()
        {
            var searchFilter = new ParentSearchFilter();

            searchFilter.Name = "A";
            // searchFilter.Name = "Parent";

            var dc = Repository <Parent> .CreateDetachedCriteria();

            searchFilter.Apply(dc);

            var parents = Repository <Parent> .FindAll(dc);

            foreach (var parent in parents)
            {
                Console.WriteLine(parent.ToString(true));
            }
        }