C#如何获得设备Mac地址
摘要:public string GetMacAddress() { try { //获取网卡硬件地址 string mac = ""; ManagementClass mc = new ManagementClass("Win32_NetworkAdapterConfiguration"); Manag
阅读全文
posted @
2016-09-19 11:41
思小娇
阅读(3054)
推荐(0)
EF CodeFirst 数据库创建与迁移
摘要:一、EF CodeFirst 根据实体创建数据库 1.新建好实体类 2.添加数据库上下文的类StudentInfoEntities:继承DbContext 3.配置Web.Config连接数据库字符串(name=“数据库上下文类的名称”) 4.写个controller运行代码,自动生成数据库 二、迁
阅读全文
posted @
2016-05-24 18:32
思小娇
阅读(1451)
推荐(2)