随笔 - 51  文章 - 0 评论 - 210 trackbacks - 6
<2007年7月>
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234

严正声明 : 本站文章转载请注明出处.

与我联系

搜索

 

留言簿(11)

我的标签

随笔分类

随笔档案

Atlas相关

积分与排名

  • 积分 - 58801
  • 排名 - 800

阅读排行榜

没事做了一个小工具,用来将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 = "传真";
        }
这样就不担心写错了,哈哈~~~~ 

在这里下载
posted on 2007-07-29 15:00 沙加 阅读(327) 评论(3)  编辑 收藏 网摘 所属分类: .NET相关

FeedBack:
#1楼  2007-07-29 23:15 duyoufa [未注册用户]
哎,是很方便了,可以偷懒了,是懒人推动了历史的进步.
  回复  引用    
#2楼 [楼主] 2007-12-27 14:27 沙加      
中文名称写在字段说明里面就好了.

如果需要源代码请向我索取.
  回复  引用  查看    
谢谢博主!很受用!
  回复  引用    

标题  
姓名  
主页
Email (博主才能看到) 
验证码 *  看不清,换一张 [登录][注册]
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
Google站内搜索


China-pub 计算机图书网上专卖店!6.5万品种 2-8折!
近千种 9-95 新二手计算图书火热销售中!

相关文章:

相关链接: