NHibernate中的CRUD操作 [英] CRUD Operation in NHibernate

查看:82
本文介绍了NHibernate中的CRUD操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everyone,



i在数据库中有多个表格。

ProjectMaster和UserTasks是该数据库中的2个表。

我想知道如何在NHibernate的帮助下执行CRUD操作。

并且还想了解nhibernate中的映射



例如:



如果项目P1是插入数据并且我想更新其任务t1,t2任何任务或添加,删除

,它应该反映在数据库中。



请让我知道如何使用C#和NHibernate执行此类操作



提前感谢... !!

Hello Everyone,

i have multiple table in database.
ProjectMaster and UserTasks are 2 table in that database.
I want to know how i can perform CRUD operation with the help of NHibernate.
and also want to know about mapping in nhibernate

for eg:

if project P1 is data inserted and i want to update its task t1, t2 any task or add, delete
and it should reflect in database.

please let me know how i can perform such kind of operation using C# and NHibernate

thanks in advance...!!

推荐答案

查看下面提到的链接以获取更多信息。



CRUD与NHibernate



http://sdesmedt.wordpress.com/2006/06/13/nhibernate-part-2-crud-with-nhibernate/ [ ^ ]



使用NHibernate测试CRUD操作



http://thatextramile.be/blog/2009/12/testing-crud-operations-with-nhibernate/ [ ^ ]



一般



NHibernate简单 [ ^ ]



我希望这对你有所帮助。
Check below mentioned links for more info.

CRUD with NHibernate

http://sdesmedt.wordpress.com/2006/06/13/nhibernate-part-2-crud-with-nhibernate/[^]

Testing CRUD Operations With NHibernate

http://thatextramile.be/blog/2009/12/testing-crud-operations-with-nhibernate/[^]

General

NHibernate Made Simple[^]

I hope this will help to you.


这篇关于NHibernate中的CRUD操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆