简体   繁体   English

从文件设置Fluent NHibernate的指南-新项目

[英]Guide to setting up Fluent NHibernate from File - New Project

I'm trying to create a new project, and I want to use NHibernate (specifically Fluent NHibernate). 我正在尝试创建一个新项目,并且想使用NHibernate(特别是Fluent NHibernate)。

My biggest problem learning a new technology is just getting it set up, and I'm having a lot of difficulties with this. 我学习新技术的最大问题就是建立新技术,与此同时,我遇到了很多困难。 I started out looking at this (http://dotnetslackers.com/articles/ado_net/Your-very-first-NHibernate-application-Part-1.aspx#download-fluent-nhibernate), but it seems outdated, as I also looked at this (http://wiki.fluentnhibernate.org/Getting_started#Installation), and they had different binaries. 我开始查看此内容(http://dotnetslackers.com/articles/ado_net/Your-very-first-NHibernate-application-Part-1.aspx#download-fluent-nhibernate),但它似乎已过时,因为我也看着这个(http://wiki.fluentnhibernate.org/Getting_started#Installation),他们有不同的二进制文件。

There are several other guides, but most assume that you have NHiberate in your project already, and it's only a guide to set up Fluent NHibernate. 还有其他一些指南,但是大多数指南都假定您的项目中已经有NHiberate,并且它只是设置Fluent NHibernate的指南。

Any simple guides out there that will help you set it up, starting from the very beginning with File - New Project? 从File-New Project开始,有没有简单的指南可以帮助您进行设置?

I don't know if it makes a difference, but I'm using .NET 4.0 and MVC. 我不知道它是否有作用,但是我正在使用.NET 4.0和MVC。

I would recommend you take a look at NuGet . 我建议您看看NuGet This takes over the admittedly gruesome job of setting up NHibernate for the first time (and many other packages!). 这接管了最初设置NHibernate的繁琐工作(以及许多其他软件包!)。

With NuGet, setting up binaries should be as simple as 使用NuGet,设置二进制文件应该很简单

add-package nhibernate.core

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM