首先你需要仔细阅读该篇官方文档 http://mongodb.github.io/mongo-csharp-driver/2.2/getting_started/installation/...
安装 nuget 在 https://docs.microsoft.com/zh-cn/nuget/install-nuget-client-tools 选择 nuget.exe 安装。 下载下来是一个 nuget.exe 不可直接运行,随意放在一个目录,在环境变量 Path 中...
1. 打开工具-->NuGet包管理器-->程序包管理器控制台 2.在PM>后面输入Enable-Migrations -ContextTypeName DatabaseName(如果执行失败,就参考失败信信息重新输入,失败信息提示的非常明确;...
发布篇: CentOs 6.5 安装 MySql (本地测试,能用为主) 【传送门】 CentOS 7 安装 .Net Core (CentOS 6.5太坑,放弃了) CentOS 7 IP配置 ip a 查看网卡名称,对应修改(参考) TYPE=Ethernet...
bundleconfig.json 绑定和缩减 [ { // 要输出的捆绑文件名称。 可以包含中的相对路径bundleconfig.json文件。 必填 "outputFileName": "wwwroot/build/xxx.xxx.com/min.css", ...
public class Users { public int Id { get; set; } public string Name { get; set; } [Required(ErrorMessage = "邮箱不能为空")] [EmailAddressAt...
<configuration> <system.web> <identity impersonate="true" /> <authentication mode="Windows" /> </system.web> <system.webServer> <defaultDocument> ......
NPoco 我一直都在用的一个ORM框架,之前没有和MySQL数据库对接过,这次正好有机会使用MySQL,过程记录一下。 1、NPoco 并不带 MySQL 驱动,需要自行Nuget ADO.Net driver for MySQL PM> Inst...
最近用到了,所以静下心来找些资料看了一下,终于把这东西搞清楚了。 一.什么是Attribute 先看下面的三段代码: 1.自定义Attribute类:VersionAttribute [AttributeUsage(AttributeTargets.C...
/// <summary> /// 判断两个字符相似度 /// 公式:l = q/(q+r+s); /// </summary> /// <param name="a"></param> /// <param name="b"></param> ...
通常开发中,我们需要做一些调试,特别是视图中做调试相对不是很方便,然而你又希望发布版本的稳健性和错误不暴露给用户,那么你可以考虑使用 Debug.Assert(bool,"我错啦!"); 好处是: 变异...
以下过程由 IIS 执行 1.客户端发出请求 2.验证请求 3.给请求授权 4.确定请求的缓存 5.获取缓存状态 6.在请求的处理程序执行前 7.http处理程序执行请求 (asp.net页面由aspnet_wp.exe执行) ...
SQL SERVER类型 C#类型 精确数字 bigint 从 -2^63 (-9223372036854775808) 到 2^63-1 (9223372036854775807) 的整型数据(所有数字)。存储大小为 8 个字节。 Int64 int 从 -2^31 (-2,147,48...
默认防火墙是禁 Ping 的 启用: 文件和打印机共享(回显请求 - ICMPv4-In) 文件和打印机共享(回显请求 - ICMPv6-In) 即可
dynamic dynamic modelCompany = new ExpandoObject(); modelCompany.Name = "Oschina"; modelCompany.Address = "深圳"; dynamic model...
腾讯:http://fw.qq.com/ipaddress 新浪的IP地址查询接口:http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js 新浪多地域测试方法:http://int.dpool.sina.com.cn/iplookup/ipl...
private void GetMail(string txt) { List<string[]> list = new List<string[]>(); string text = Regex.Replace(txt, ":", ":"); text = Regex.Replace(text, ",", ","); ...
str="A B C D E F"; str = new System.Text.RegularExpressions.Regex("[\\s]+").Replace(str, " "); //结果 //# A B C D E F...
DirectoryInfo TheFolder=new DirectoryInfo(folderFullName); //遍历文件夹 foreach(DirectoryInfo NextFolder in TheFolder.GetDirectories()) this.listBox1.Items.Add(NextFolder.Na...
方式一: AttributeRouting(第三方) 主要是实现Web Api Attribute路由的功能 对应的还有 Mvc 版。 AttributeRouting for GitHub 参考(不是很好): http://www.cnblogs.com/n-pei/archive/201...
没有更多内容
加载失败,请刷新页面
文章删除后无法恢复,确定删除此文章吗?
动弹删除后,数据将无法恢复
评论删除后,数据将无法恢复