NHibernate, VS 2010
Posted
by ??????
on Stack Overflow
See other posts from Stack Overflow
or by ??????
Published on 2010-05-21T16:24:13Z
Indexed on
2010/05/21
16:30 UTC
Read the original article
Hit count: 515
c#
????????????, ANRY! ?????? ??????? ??? ??????????? ???????? ?? ????????????, ?????????? ? NHibernate. ??? ?? ???????? ???? ?????? "Hello NHibernate!". ???????????? ??????????? ????? ??????? ????????: ?? ????, ???? ?????, ??????, ?????. ?????????????? ?????? 4 ??????? ? MSSQL 2010: ?????(id_??????, ????????, ????), ??????(id_???????, ???, ???????), ?????(id_??????, id_???????, ?????????) ? ?????? ??????(id_?????? ??????, id_??????, id_??????, ??????????). ??????????????, ?????? 4 ??????: ?????, ??????, ?????, ?????? ??????. ?????? ??? ?????: ????? ?? ????????? 4 mapping-?????, ??? ?? ????? ???????????? ?????? ? ????? ???? Debug ???????? ????????? ??????: "Could not compile the mapping document: Sklad.products.hbm.xml". ?????? "????????" ?????????, ??? ??????. ? ??? ????? ???? ???????? ? ??? ?? ????? ??????? ? ?????????, ??????. P.S. ???? ?? ??????, ?????? ???????? ?? ?????: [email protected]
Google translation
(I cleaned this up a but, don't don't speak russian, someone else please improve if it's wrong)
Hello, ANRY! Most recently, during the passage of the practice of the university, faced with NHibernate. I read your article "Hello NHibernate!". Took to implement something like a store: that is, a product, the customer order. Accordingly created 4 tables in MSSQL 2010:
Goods (id_tovara, name, price)
Client (id_klienta, name, surname)
Order (id_zakaza, id_klienta, cost)
Order Line (id_stroki order id_zakaza, id_tovara, quantity)
Accordingly, created 4 classes: Product
, Customer
, Order
, Order Line
. my question is this: whether you want to create 4 mapping-file, or you can make only one? And when there is a Debug gives the following error: "Could not compile the mapping document: Sklad.products.hbm.xml
. And "Build" is normal, no errors. In what may be the problem and how it can solve?
Regards, Andrew.
PS if not difficult, you can reply to e-mail: [email protected]
© Stack Overflow or respective owner