简体   繁体   English

Django喜欢C#MVC的管理项目

[英]Django Like Admin Project for C# MVC

I've been using Django recently and I really love its built-in admin interface. 我最近一直在使用Django,我真的很喜欢它的内置管理界面。 I was wondering if there were any C# MVC projects our there which mimicked the django admin in terms of its ease and structure? 我想知道是否有任何C#MVC项目我们在那里模仿django管理员的易用性和结构?

(I'm not looking for to use the whole django model in MVC, just looking for the admin portion of it) (我不是要在MVC中使用整个django模型,只是寻找它的管理部分)

With enough time and customizing of the EditorTemplates & DisplayTemplates I could create something similar on a per-site basis using Html.DisplayForModel() and Html.EditorForModel() but not all of it would be re-usable, nor have I gotten around to doing something like that (though I may go that route) and it takes a lot longer to setup. 有足够的时间和自定义EditorTemplates和DisplayTemplates我可以使用Html.DisplayForModel()Html.EditorForModel()在每个站点上创建类似的东西,但不是所有的都可以重复使用,我也没有做那样的事情(虽然我可能会走那条路)但设置需要更长的时间。 My experience with Django admin.py is that 10-15 lines of code goes a long long long way. 我的Django的admin.py的经验是,10至15行代码走一段很长很长很长的路要走。

I have previously used EntitySpaces and they offered a web-admin grid, but a) its web-forms, b) it got less and less support as they continued development with it and c) you can't really use it and LINQtoSQL at the same time, and I find L2S to require much less overhead. 我之前使用过EntitySpaces ,他们提供了一个web-admin网格,但是a)它的web表单,b)它继续使用它开发得越来越少支持c)你不能真正使用它和LINQtoSQL同时,我发现L2S需要更少的开销。

Any recommendations or projects you know of out there? 你知道的任何建议或项目吗?

Thanks! 谢谢!

You can create the Dynamic Data Site in Visual Studio 2010, which does the same thing like Django-admin site. 您可以在Visual Studio 2010中创建动态数据站点,它与Django-admin站点一样。 It requires Entity Framework. 它需要实体框架。

Check out sharp architecture , it automatically sets up admin CRUD for the entities you define. 查看清晰的架构 ,它会自动为您定义的实体设置管理CRUD。 (However this is NHibernate based, so you wont be able to use Linq2Sql) (不过这是基于NHibernate的,所以你不能使用Linq2Sql)

Though it would be great if the built-in editor templating was improved. 虽然如果内置的编辑器模板得到改进会很棒。

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

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