简体   繁体   English

我是一个非常出色的C#开发人员,但我从未做过类似的事情; 我将如何创建CRUD应用程序生成器?

[英]I'm a pretty good C# developer, but I've never done something like this; how would I create a CRUD application generator?

I found SubSonic, but I'd rather roll my own with a few buddies. 我找到了SubSonic,但我希望与几个伙伴一起努力。

I've never done something like this before, but if you tell me technically how I should proceed, I can figure it out. 我以前从未做过这样的事情,但是如果您从技术上告诉我应该如何进行,我可以弄清楚。

I want to have a sort of visual designer. 我想要一个视觉设计师。 Ask the user what tables there are going to be, the relations, what fields, which are primary keys, etc. 询问用户将要有哪些表,关系,哪些字段,哪些是主键等。

Then generate all the appropriate classes with the appropriate DAL and SQL database. 然后使用适当的DAL和SQL数据库生成所有适当的类。

After all is said and done, I'd like to output a simple .exe file with a generic look that allows a user to view all the fields, etc. 说完一切之后,我想输出一个具有通用外观的简单.exe文件,该文件允许用户查看所有字段等。

Any tips, I'm not sure if I should mark this a community wiki or not, because I don't think there is a specific answer. 任何提示,我不确定是否应将其标记为社区Wiki,因为我认为没有特定答案。 Let me know SO. 让我知道。

You could do something similar to what we do (though we generate a domain layer). 您可以执行与我们相似的操作(尽管我们会生成域层)。 Take the MS DSL tools and construct graphical DSL that contains the elements of your DAL (procs, tables, triggers etc). 使用MS DSL工具并构建包含DAL元素(过程,表,触发器等)的图形DSL。 That is not too hard. 那不太难。

Add say drag and drop from the server explorer window to allow reverse engineering of persistence mappings and then write a few T4 templates to generate the code of the DSL model. 从服务器资源管理器窗口添加拖放,以允许对持久性映射进行逆向工程,然后编写一些T4模板以生成DSL模型的代码。

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

相关问题 我想创建一个文件夹来将图像存储在C#Web应用程序中 - I would like to create a folder to store images in C# web application 看起来像是一个基本的C#查询,但我不是C#开发人员 - What seems like a basic C# query, but I'm not a C# developer 我想在C#中重新创建以下XAML - I would like to re create the following XAML in C# C#:我想像文件路径一样将消息传递给我的表单应用程序,比如控制台应用程序,我该怎么做? - C#: I want to pass messages like a file path to my forms application like a console application, how would I do that? 如何在C#中创建类似动态枚举的东西? - How can I make something like a dynamic enumeration in C#? 我如何像在 Notepad/Notepad++ 中一样创建“查找表单”? C# - How would I create a “Find Form” Like in Notepad/Notepad++? C# 在C#中我想比较数据表 - in c# I would like to compare datatables C#应用程序保留文件,即使我已经完成使用它 - c# application holding file even I've finished work with it 如何在C#中创建一个长时间运行的进程? - How would I create a long running process in C#? 我将如何创建动态类项目? C#WinForms - How would I create Dynamic Class Items? C# WinForms
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM