表列名自动生成器
没事做了一个小工具,用来将sql 2005里面的列的乐称和中文名称做到一个类里面去,方便在前后台使用.生成的结果象这样
public static class Customers
{
public const string CustomerID = "CustomerID";
public const string CustomerID_cn = " 客户编号";
public const string CompanyName = "CompanyName";
public const string CompanyName_cn = "公司名称";
public const string ContactName = "ContactName";
public const string ContactName_cn = "联系名";
public const string ContactTitle = "ContactTitle";
public const string ContactTitle_cn = "联系标题";
public const string Address = "Address";
public const string Address_cn = "地址";
public const string City = "City";
public const string City_cn = "城市";
public const string Region = "Region";
public const string Region_cn = "区域";
public const string PostalCode = "PostalCode";
public const string PostalCode_cn = "邮编";
public const string Country = "Country";
public const string Country_cn = "国家";
public const string Phone = "Phone";
public const string Phone_cn = "电话";
public const string Fax = "Fax";
public const string Fax_cn = "传真";
}
这样就不担心写错了,哈哈~~~~
在这里下载
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif)
在这里下载