创建C#.net类并创建一个sql数据库 [英] Creating C#.net classes and creating a sql database

查看:85
本文介绍了创建C#.net类并创建一个sql数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Visual Studio 3.5中创建了C#类,根据系统分析,它们之间相互关联良好.我需要找出如何使这种类型的系统直接创建的sql数据库,而无需再次访问sql,然后创建与它们相关的表等等.我希望这些类自动绘制数据库架构.

I have created C# classes in Visual studio 3.5 they are well associated to one another depending to the system analysis. I need to find out how can i make an sql database directly created with this type of system without again going to sql and then create tables relate them and so on. I want the classes to draw automatically the database schema.

Any help with this

推荐答案

的任何帮助根据您的问题,您对.Net有所了解,因此创建复杂的类对您而言将是一项艰巨的工作.

我建议您使用ORM来基于数据库生成类.对于初学者,请尝试搜索 NHibernate ( hard-mode ), Codesmith PLINQO ( medium-mode )或 Telerik OpenAccess (简易模式).

我不是在做广告,而是基于我对上述技术的ORM经验.

祝你好运!
Based on your question, you have a little knowledge on .Net, so creating complex classes will be a tough job for you.

I would suggest that you use ORM to generate classes based on your DB. For starter, try searching for NHibernate(hard-mode), Codesmith PLINQO(medium-mode) or Telerik OpenAccess(Easy-mode).

Im not advertising, those were based on my ORM experience for the said technologies.

Good luck!


这篇关于创建C#.net类并创建一个sql数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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