简体   繁体   English

如何使用一些 RAD 工具或 Visual Studio 2010 在 C# winforms SQL 服务器中获取模板化的起始数据库驱动的 forms

[英]How to get templated starter database driven forms generated in C# winforms SQL Server using some RAD tool or Visual Studio 2010

I hope I got all that in this question title.我希望我在这个问题标题中得到了所有这些。 Let me explain.让我解释。 We are starting on small desktop app that will snowball into a big app with many forms.我们从小型桌面应用程序开始,它将滚雪球成具有许多 forms 的大型应用程序。 The database is SQL Server.数据库是 SQL 服务器。 It will have classic stored procs/functions performing classic CRUD functions.它将具有执行经典 CRUD 功能的经典存储过程/函数。 Given a table or stored proc in SQL Server what is the quickest way to create a form with all the hooks to maintain a table.给定 SQL 服务器中的表或存储过程,创建具有所有挂钩以维护表的表单的最快方法是什么。

For eg lets assume I have table like this (most code below is pseudo code)例如,假设我有这样的表(下面的大多数代码是伪代码)

Table Employee 
{
      Name varchar(30)
      DOB Datetime
      Address varchar(100)
}

From this as source I want to create my Target which is form with 3 labels and 3 textboxes with add delete modify buttons (or OK button to add if not exists or modify if exists)以此为,我想创建我的目标,它是带有 3 个标签和 3 个文本框的表单,带有添加删除修改按钮(或者如果不存在则添加 OK 按钮或如果存在则修改)

 Name: TextBox
 DOB:  TextBox or Datetime picker 
 Address: Textbox

  OK   DELETE   CLOSE

The code generation tool or technique that will be used should generate the correct db hooks (create SQL parameters, SqlCommand , execute sql.. basic try catch etc. Is there any open source tool to do this? Some trick or templated approach via VS 2010? Worst case any third party tool? thank you将使用的代码生成工具或技术应生成正确的数据库挂钩(创建 SQL 参数、 SqlCommand 、执行 sql .. 基本的 try catch 等。是否有任何开源工具可以做到这一点?通过 VS 2010 的一些技巧或模板化方法? 任何第三方工具的最坏情况? 谢谢

Did you have a look at http://nettiers.com ?你看过http://nettiers.com吗?

It is basically a set of templates (not T4 ) that lets you generate most of the layers you want of an application.它基本上是一组模板(不是T4 ),可让您生成应用程序所需的大部分层。

I like it because it is very easy to extend what is generated and to build incremental apps with it, based on the database: first iteration: choose your first X tables, generate any layer you like (winform or asp.net, DAL, stored procedures for CRUD, entities, ...), then extend what is generated using the partial classes provided or the base classes second iteration: add X tables to your selection, regenerate, take advantage of all your customization.我喜欢它,因为它很容易扩展生成的内容并使用它构建增量应用程序,基于数据库:第一次迭代:选择你的第一个 X 表,生成你喜欢的任何层(winform 或 asp.net,DAL,存储过程CRUD,实体,...),然后扩展使用提供的部分类或基类第二次迭代生成的内容:将 X 表添加到您的选择中,重新生成,利用您的所有自定义。

The only down side of nettiers is that you need to have a licence of codesmith to execute the templates, and it cost 100$. nettiers 唯一的缺点是您需要拥有codesmith的许可证才能执行模板,而且价格为 100 美元。

There is DBEXform designer tool to create database forms reports and applications for Windows.有 DBEXform 设计器工具来创建数据库 forms 报告和 Windows 的应用程序。

Applications are execute on.Net 3.5 environment.应用程序在.Net 3.5 环境中执行。

Latist version of DBEXform could be downloaded from http://www.willmansoft.com DBEXform 的最新版本可以从http://www.willmansoft.com下载

:JW :JW

Try www.metadrone.com试试www.metadrone.com

It's a new tool, not many templates created for it yet.这是一个新工具,还没有为它创建很多模板。 But it's easy to use to create your own templates to make generated stored procedures and forms to suit your own style of coding.但它很容易使用创建自己的模板来生成生成的存储过程和 forms 以适应您自己的编码风格。

暂无
暂无

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

相关问题 在尝试使用C#连接到Visual Studio 2010中的本地SQL Server数据库时遇到问题 - Having problems trying to connect to local SQL Server database in Visual Studio 2010 using C# 如何在Visual Studio 2010中使用SQL Server 2012数据库打包和部署C#桌面应用程序? - How to package and deploy a C# desktop application with a SQL Server 2012 database in Visual Studio 2010? Winforms:如何使用C#将图片上传到SQL Server数据库 - Winforms: How to upload a picture into SQL Server database using C# 在Visual Studio 2010 C#中不允许访问数据库文件(SQL Server Compact) - Access to database file not allowed (SQL Server Compact) in Visual Studio 2010 C# 如何将在 Visual Studio C# 中创建的数据库迁移到 SQL 服务器? - How to migrate a DataBase created in Visual Studio C# to a SQL Server? 通过Visual Studio 2010 C#访问sql 2008数据库 - Accessing sql 2008 database through visual studio 2010 C# 重命名Visual Studio 2010中C#解决方案中的SQL Server表 - Rename SQL Server Table in c# solution in Visual Studio 2010 如何在Visual Studio 2015中使用C#创建到SQL Server数据库的连接字符串 - How to create a connection string using C# to SQL Server database in Visual Studio 2015 如何使用SQL Server CE和C#更新dB表中的单元格值(Visual Studio 2010) - How can I update a cell value in a dB table, using SQL Server CE and C# (Visual Studio 2010) 使用c#将Access数据库添加到Visual Studio 2010中的项目中 - Adding Access Database to Project in Visual Studio 2010 using c#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM