C#.net的最佳代码生成器 [英] Best Code Generator for C#.net

查看:128
本文介绍了C#.net的最佳代码生成器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含大约100个表的sql数据库。我想使用代码生成器为这些表创建类库,基本上是CRUD操作。什么是最好的代码生成器?它应该是免费使用至少供个人使用。如果我喜欢它,我可以追求雇主购买它。免费更好:)提前感谢您的帮助。

解决方案

也许我在这里遗漏了一些东西,但不会像Entity Framework那样最好吗?您可以通过它来生成模型并与它们交谈(基本CRUD),而无需亲自编写代码。



这是关于步骤的基本教程需要: http://auk-port.blogspot .com / 2011/05 / how-to-create-database-first-in-aspnet.html [ ^ ]



基本上,您将EF指向您的数据库,选择您想要的表格,然后说出Go并创建所有模型。然后,您可以使用EF对它们执行CRUD操作,最好的部分是它来自Microsoft而不是第三方库,因此如果您已经使用Microsoft工具它是免费的(我相信它甚至适用于Express版本,它们是免费)。

Hi, I have a sql database with about 100 tables. I am thinking to use code generator to create class library for these tables, basically CRUD operations. What is the best code generator out there? It should be free to use atleast for personal use. If I can like it, I can pursue employers to buy it. Free is better :) Thanks in advance for the help.

解决方案

Maybe I'm missing something here, but wouldn't something like Entity Framework be the best option? You can get it to generate your models and talk to them (basic CRUD) without having to actually write the code yourself.

Here is a basic tutorial on the steps you would take: http://auk-port.blogspot.com/2011/05/how-to-create-database-first-in-aspnet.html[^]

Basically, you point EF to your database, select the tables you want, and say Go and it creates all of your models. You can then perform CRUD operations on them using EF and the best part is that it is from Microsoft and not a third party library so it is free if you are using Microsoft tools already (I believe it even works with the Express editions, which are free).


这篇关于C#.net的最佳代码生成器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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