会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
求知
博客园
首页
新随笔
联系
订阅
管理
2014年8月20日
ie下json会提示下载的解决方案
摘要: 返回的JsonResult里面,定义ContentType="text/html" return new JsonResult() { ContentType = "text/html", Data = result };
阅读全文
posted @ 2014-08-20 18:25 本杰明·喝茶
阅读(320)
评论(0)
推荐(0)
2014年8月16日
xml中有空值节点,导入到数据库null值
摘要: DECLARE @X TABLE ( XXML XML )INSERT @X SELECT ' 'CREATE TABLE Subject_Master ( ID INT NULL, NAME ...
阅读全文
posted @ 2014-08-16 11:52 本杰明·喝茶
阅读(727)
评论(0)
推荐(0)
2014年5月28日
递归遍历xml
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Xml;namespace ConsoleAppli...
阅读全文
posted @ 2014-05-28 17:31 本杰明·喝茶
阅读(322)
评论(0)
推荐(0)
2014年5月8日
ip反查MAC地址
摘要: 打开DOS命令提示符窗口,在窗口中输入命令“nbtstat -a IP”,如以上面查到的“10.10.3.21”为例,输入“nbtstat -a 10.10.3.21”
阅读全文
posted @ 2014-05-08 10:06 本杰明·喝茶
阅读(885)
评论(0)
推荐(0)
查询局域网内的IP
摘要: COLOR 0ACLS@ECHO OffTitle 查询局域网内在线电脑IP:send@ECHO off&setlocal enabledelayedexpansionECHO 正在获取本机的IP地址,请稍等...for /f "tokens=3 skip=2 delims=: " %%i in (...
阅读全文
posted @ 2014-05-08 10:05 本杰明·喝茶
阅读(347)
评论(0)
推荐(0)
2014年2月23日
annotations 和 fluent api的选择
摘要: 1.什么是annotations 和 fluent api? 两者都是用来对mvc中的model进行限定的,比如规定某个字符串属性要【 非空,最长为50个字符】。annotations和fluent api 是两种风格的写法。(a) annotations风格是指 直接在model 这个类 把限制标注在属性的上面:[Required,MaxLength(50)]public string Name{get;set;}(b) fluent api 风格 是用单独的代码 写出 属性的 限定条件。modelBuilder.Entity().Property(p => p.Name).HasMa
阅读全文
posted @ 2014-02-23 23:11 本杰明·喝茶
阅读(1220)
评论(0)
推荐(0)
公告