摘要:
返回的JsonResult里面,定义ContentType="text/html" return new JsonResult() { ContentType = "text/html", Data = result }; 阅读全文
摘要:
DECLARE @X TABLE ( XXML XML )INSERT @X SELECT ' 'CREATE TABLE Subject_Master ( ID INT NULL, NAME ... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Xml;namespace ConsoleAppli... 阅读全文
摘要:
打开DOS命令提示符窗口,在窗口中输入命令“nbtstat -a IP”,如以上面查到的“10.10.3.21”为例,输入“nbtstat -a 10.10.3.21” 阅读全文
摘要:
COLOR 0ACLS@ECHO OffTitle 查询局域网内在线电脑IP:send@ECHO off&setlocal enabledelayedexpansionECHO 正在获取本机的IP地址,请稍等...for /f "tokens=3 skip=2 delims=: " %%i in (... 阅读全文
摘要:
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 阅读全文