static void Main(string[] args)
        {

            BaseEFContext Context = new BaseEFContext();
            RepositoryNoticeContract rep = new RepositoryNotice(Context);
            Context.Database.Log = Log => TextSQL(Log);

            //Add(rep); ok
            //Create(rep); ok
            //Edit(rep); ok
            //Delete(rep); ok
            //Find(rep); ok
            //ToList(rep); ok
            //ToAll(rep); ok
            //ToPagination(rep); ok
            //ToGroupBy(rep); ok

            Action<ConfigurationOrderBy<Notice>> a = c =>
            {
                c.OrderBy.Add(x => x.TagId);
            };

            var c1 = rep.All(a);

            
            System.Console.ReadKey();

        }
 public TestClass()
 {
     ctx = new BaseEFContext();
     rep = new RepositoryNotice(ctx);             
 }