从SQL Server表生成C#类 [英] Generate C# class from SQL Server table

查看:114
本文介绍了从SQL Server表生成C#类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在不使用ADO.net实体框架在项目中添加表的情况下为SQL Server中的表生成类?



 公共类批准
{
public long Id {get;组; }
公有长? FormId {get;组; }
公有长? DesignationId {get;组; }
公共DateTime? CreatedOn {get;组; }
}


解决方案

此在线工具生成SQL表中的类。类基于 MS-SQL ORACLE CREATE TABLE 脚本$ c>, MYSQL POSTGRESQL SQLite 数据库,




Is there any way to generate a class for table in SQL Server without adding table in project with ADO.net Entity Framework?

public class Approval
{
        public long Id { get; set; }
        public long? FormId { get; set; }
        public long? DesignationId { get; set; }
        public DateTime? CreatedOn { get; set; }
}

解决方案

This online tool generates a class from SQL table. Class is based on the CREATE TABLE script in MS-SQL, ORACLE, MYSQL, POSTGRESQL and SQLite databases, to a class in C# and other programming languages.

https://codverter.com/src/sqltoclass

这篇关于从SQL Server表生成C#类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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