摘要:
方法一: 1.程序包管理器控制台 输入指令:Enable-Migrations 注: 执行 Enable-Migrations 时可能会因为错误而打断,此时需要再次运行加参数的命令Enable-Migrations -Force:Migrationshave already been enabled 阅读全文
摘要:
<runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad 阅读全文
摘要:
1.得到当前应用程序的根目录 public static string GetBaseDirectory() { var baseDirectory = AppDomain.CurrentDomain.SetupInformation.PrivateBinPath; if (AppDomain.Cu 阅读全文
摘要:
1.通过反射创建对象 方法1 public static IMessageReceiver CreateInstance(WeixinMessage weixinMessage) { IMessageReceiver result = null; MessageTypeAttribute messa 阅读全文
摘要:
错误信息:检索 COM 类工厂中 CLSID 为{00024500-0000-0000-C000-000000000046} 的组件失败,原因是出现以下错误:80070005 拒绝访问。 (异常来自HRESULT:0x80070005 (E_ACCESSDENIED))。 解决方式: 1.输入命令 阅读全文
摘要:
<link href="~/Areas/Admin/Content/uploadify/uploadify.v3.2.css" rel="stylesheet" /> <script src="~/Areas/Admin/Content/uploadify/jquery.uploadify.v3.2 阅读全文
摘要:
<link href="~/Content/BootStrap/css/bootstrap-datetimepicker.min.css" rel="stylesheet" /> <script src="~/Content/BootStrap/js/moment-with-locales.js"> 阅读全文
摘要:
public void ExportExcelBrand() { string elxStr = ""; string body = ""; List list = this.BaseService.GetModelList(u => u.MemberID == this.MemberCont... 阅读全文
摘要:
一.说明 用c#基于.net 平台的MVC框架开发的微网站。 二.对象实体映射框架 1.Entity Framework:https://msdn.microsoft.com/en-us/library/jj592674(v=vs.113).aspx CodeFirst技术 1.1常用的数据库操作 阅读全文