在没有存储过程的情况下从SQL Server表生成C#类 [英] Generate C# class from SQL Server table without Store Procedure
本文介绍了在没有存储过程的情况下从SQL Server表生成C#类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在不使用ADO.net实体框架在项目中添加表的情况下为SQL Server中的表生成类?
公共类批准{公开长号{放;}公共长?FormId {get;放;}公共长?DesignationId {get;放;}公开DateTime?CreatedOn {get;放;}}
解决方案
此在线工具从SQL表生成一个类.类基于 MS-SQL
, ORACLE
, MYSQL
, POSTGRESQL
和 SQLite
数据库,转换为C#和其他编程语言的类.
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屋!
查看全文