表列名自动生成器

介绍了一款用于将SQL Server 2005中列的别名与其对应的中文名称转换为C#类的小工具,便于前后端开发中统一使用,避免错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

没事做了一个小工具,用来将sql 2005里面的列的乐称和中文名称做到一个类里面去,方便在前后台使用.生成的结果象这样

None.gif          public   static   class  Customers
ExpandedBlockStart.gifContractedBlock.gif        
dot.gif {
InBlock.gif            
public const string CustomerID = "CustomerID";
InBlock.gif            
public const string CustomerID_cn = " 客户编号";
InBlock.gif            
public const string CompanyName = "CompanyName";
InBlock.gif            
public const string CompanyName_cn = "公司名称";
InBlock.gif            
public const string ContactName = "ContactName";
InBlock.gif            
public const string ContactName_cn = "联系名";
InBlock.gif            
public const string ContactTitle = "ContactTitle";
InBlock.gif            
public const string ContactTitle_cn = "联系标题";
InBlock.gif            
public const string Address = "Address";
InBlock.gif            
public const string Address_cn = "地址";
InBlock.gif            
public const string City = "City";
InBlock.gif            
public const string City_cn = "城市";
InBlock.gif            
public const string Region = "Region";
InBlock.gif            
public const string Region_cn = "区域";
InBlock.gif            
public const string PostalCode = "PostalCode";
InBlock.gif            
public const string PostalCode_cn = "邮编";
InBlock.gif            
public const string Country = "Country";
InBlock.gif            
public const string Country_cn = "国家";
InBlock.gif            
public const string Phone = "Phone";
InBlock.gif            
public const string Phone_cn = "电话";
InBlock.gif            
public const string Fax = "Fax";
InBlock.gif            
public const string Fax_cn = "传真";
ExpandedBlockEnd.gif        }
这样就不担心写错了,哈哈~~~~ 

在这里下载
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值