从数据库生成POCO / DTO的工具(SQL Server)

哪些免费工具可以从MS SQL Server数据库生成简单的POCO / DTO类? 使用属性和字段,但仅此而已

看看MyGeneration – 它是一个免费的SQL Server代码生成工具,可以让您定义将由数据库结构驱动的模板。

决定另一方会发生什么。

找不到合适的,所以创建了一个非常简单的TSQL脚本。 这是要点 。

样本输出:

public class EmployeeDto { public int Id { get; set; } public int AccountId { get; set; } public string ExternalId { get; set; } public string EmailAddress { get; set; } public bool IsActive { get; set; } public string UniqueId { get; set; } public bool IsBuiltIn { get; set; } public string LastName { get; set; } public string FirstName { get; set; } public string MiddleName { get; set; } public bool IsAuthorizedOnAllDepartments { get; set; } }