ASP.NET MVC 1和2单声道2.4功能NHibernate [英] ASP.NET MVC 1 and 2 on Mono 2.4 with Fluent NHibernate

查看:96
本文介绍了ASP.NET MVC 1和2单声道2.4功能NHibernate的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个使用ASP.NET MVC应用程序时,应在单2.4(编译将在Windows中完成)运行。有没有人得到运气呢?以下是我已经尝试过:

I'd like to create an application using ASP.NET MVC, that should run under mono 2.4 (compiling will be done on a Windows box). Has anyone getting luck with this? Here is what I've already tried:


  1. ASP.NET MVC单上没有任何持久化模型的支持,并使用nhaml作为视图引擎

  2. 取值​​#反洗钱体系结构,这是一个相当不错的框架,恕我直言,但要看的东西太多了,不能工作好下单(如温莎)

第一部分工作得很好,我没有遇到任何大的问题。但我不能得到第二部分的工作。看来这是对 Castle.Windsor 依赖打破了整个单支持(但也有可能是其他地方也是如此)。

The first part worked fine, I didn't encounter any major problems. But I couldn't get the second part working. It seems it's dependency on Castle.Windsor breaks the whole mono support (but there might be other parts too).

因此​​,我决定建立一个替代的框架,即借用一些第#ARP架构的想法,但根据设计,单是工作(如果我能做到这一点,我会释放它为社会当然)。该控制器和视图部分(这里没有大的魔力,虽然,他们已经一直在努力)工作正常,但我有一些问题之前,我开始对持久部分作业:

Therefore I decided to create an alternative framework, that borrows some of the ideas of s#arp-architecture, but designed to be working under mono (and if I'm able to do this I'll release it for the community of course). The controller and view part is working fine (not much magic here though, they have been always working), but I have some questions before I start job on the persistence part:


  • 什么NHibernate的版本下单的工作?我听说1.2是工作的罚款。 2.0.1是否/ 2.1测试版的工作下单?

  • 是否Fluent.NHibernate和NHibernate.Linq下单工作? (为似乎后者它需要一些dependcies不在单avaialable)

  • 是否有下单持久性支持NHibernate的什么好的办法?

替代问题:


  • 是否存在有单+持久性+ asp.net mvc的支持已经还是我第一个想到这个框架的任何?

  • 如果你已经做到了这一点:?什么是你对稳定性/可用性意见

感谢您的答案

编辑:更新了框架,以支持ASP.NET MVC 2: http://shaml.sztupy.hu/

Updated the framework to support ASP.NET MVC 2: http://shaml.sztupy.hu/

推荐答案

好吧。我开始一个新项目,采用选自S#ARP架构的最好的东西,对单的工作。相反T4Toolkit它使用Ruby脚本做代的工作,就如同用导轨或Merb的。

Okay. I started on a new project that incorporates the best from S#arp Architecture with stuff, that work on mono. Instead of T4Toolkit it uses a ruby script to do the generation job, just as with rails or merb.

要使用从GitHub安装shaml宝石:

To use install the shaml gem from github:

gem install shaml

然后创建一个新的应用程序:

Then create a new application:

shaml generate app AppName

和创建资源:

shaml generate resource NewRes "name:string;date:DateTime"

取值#AML建筑项目主页: http://shaml.sztupy.hu/

S#aml Architecture project homepage: http://shaml.sztupy.hu/

GitHub的项目: http://github.com/sztupy/shaml/tree/master

GitHub project: http://github.com/sztupy/shaml/tree/master

这篇关于ASP.NET MVC 1和2单声道2.4功能NHibernate的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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