Exemplo n.º 1
0
        public ActionResult InsertBook()
        {
            Books book = new Books();

            book.Title              = "一本闲书";
            book.Author             = "姜敞";
            book.PublisherId        = 1;
            book.PublishDate        = DateTime.Now;
            book.ISBN               = "fsaf";
            book.WordsCount         = 100;
            book.UnitPrice          = 100;
            book.ContentDescription = "Java面向对象,.net面向对象,一本闲书,微软姜敞,深受专家和程序员喜爱";
            IBooksService bookService = new BooksService();

            bookService.AddEntity(book);
            DataIndexManager.GetInstance().InserData2Queue(10000, book.Title, book.ContentDescription, EnumBookSave.Addbook);
            return(Content("OK"));
        }