- 博客(43)
- 收藏
- 关注
转载 微软关于LINQ的101个例子
记录,备查。101 LINQ Sqmples转载于:https://www.cnblogs.com/jqdy/p/11422193.html
2019-08-28 09:41:00
298
转载 Bootstrap Table 3 官方文档
备查Bootstrap Table 3 官方文档示例转载于:https://www.cnblogs.com/jqdy/p/11337902.html
2019-08-12 09:29:00
230
转载 GitHub上Asp.Net Core的源代码
记录,备查。https://github.com/aspnet/AspNetCore/tree/master/src转载于:https://www.cnblogs.com/jqdy/p/11325897.html
2019-08-09 11:03:00
1357
转载 GroupJoin()各参数的意义及用法
EF Core中GroupJoin的注释比较复杂: public static IEnumerable<TResult> GroupJoin<TOuter, TInner, TKey, TResult>(this IEnumerable<TOuter> outer, IEnumerable<TInner> inner,...
2019-08-01 14:57:00
2558
转载 使用EF Code First生成模型,如何让时间字段由数据库自动生成
场景:保存记录时需要时间字段,该时间如果由前台通过DateTime.Now产生,存在风险,比如修改客户端的系统时间,就会伪造该记录的生成时间。因此,需要在保存记录时,由后台自动赋予具体的时间。实现方法:1)完成模型public class Record{ .....//其他字段 public DateTime Date{get;set;}...
2019-07-27 10:24:00
268
转载 js函数传递参数的方式------传值与传递指针
原则:1. 基本类型:传值2. 对象:传递指针应用场景之一:用jq选择器获取某个div后(例如:element),准备进行某些修改,之后添加到页面中去。采取例一的方式,append后发现修改的内容没有改变。采用例二的方式,成功修改。举例一:传值1、调用:....setId(element);***.append(element);.......
2019-07-25 10:51:00
1146
转载 https://blog.youkuaiyun.com/fangxing80/article/details/6329840
备存转载于:https://www.cnblogs.com/jqdy/p/10405606.html
2019-02-20 11:37:00
164
转载 Matlab2016b线性规划函数linprog的几个问题
一、如何设置算法为单纯型法:options = optimoptions('linprog','Algorithm','dual-simplex')二、linprog的参数用法:[x,Fval,e]=linprog(f,A,b,[],[],lb)1、e的取值含义转载于:https://www.cnblogs.com/jqdy/p/7628916.html...
2017-10-05 11:08:00
564
转载 将csv文件导入sql数据库
有一个csv文件需要导入到Sql数据库中,其格式为 “adb”,"dds","sdf" “adb”,"dds","sdf" ...... 先在sql数据库中建一个表,结构与csv文件相同(将数据,时间等都定义成nvarchar,否则出现错误)。 然后执行:BULK INSERT [Order]FROM 'C:\a...
2017-03-31 11:52:00
224
转载 Publishing and Deployment >> Publishing to IIS 翻译
Publishing to IIS 发布到IIS2017/1/1818 min to readContributorsSupported operating systems 支持的操作系统The following operating systems are supported:Windows 7 and newerW...
2017-01-23 10:00:00
505
转载 设置DataSource后DateGridView不显示的问题
在一个WinForm小程序中,有两处需要用DataGridView控件显示数据。设置DataGridView.DataSource为数据查询结果后,第一个DataGridView可以正常显示数据,而第二个DataGridView没有任何反应。 具体代码如下:第一个datagridview的相关代码部分:OleDbConnection connec...
2016-12-31 11:33:00
1040
转载 C#中使用Linq实现全外连接
每次使用都到处查阅,现在记录下来,备查。var fulljoin = (from s in sampleRegistersjoin t in tensionDatason new { Beach = s.Beach, Hook = s.Hook } equals new { Beach = t.Beach, Hook = t.Hook } into havematchwh...
2016-12-31 11:03:00
630
转载 使用vs中的发布功能发布asp.net core项目时遇到ERROR_CERTIFICATE_VALIDATION_FAILED错误
今天将VS2015编制的一个asp.net core项目发布到服务器进行测试,使用的是vs中主菜单“生成”中的“发布”功能。 遇到了一个错误,在网上反复检索尝试,终于解决问题: 1. 错误信息:错误代码: ERROR_CERTIFICATE_VALIDATION_FAILED更多信息: 已使用指定的进程(“Web Management Service”)连...
2016-12-06 15:23:00
300
转载 使用Asp.Net Core Identity给用户添加及删除角色
基于Asp.Net Core编制一个项目,需要给用户添加及删除角色的功能,于是使用到了Identity中的UserManager。 先后解决了几个问题,终于实现了设想。1. 环境条件 Asp.Net Core 1.0.1 Microsoft.AspNetCore.Identity.EntityFrameworkCore 1.0.02. 给用户...
2016-11-05 18:22:00
655
转载 Working with Data » Getting started with ASP.NET Core and Entity Framework Core using Visual Studio...
Updating related data¶7 of 7 people found this helpfulThe Contoso University sample web application demonstrates how to create ASP.NET Core 1.0 MVC web applications using Entity Framework Cor...
2016-10-28 11:18:00
161
转载 Working with Data » Getting started with ASP.NET Core and Entity Framework Core using Visual Studio...
Reading related data¶9 of 9 people found this helpfulThe Contoso University sample web application demonstrates how to create ASP.NET Core 1.0 MVC web applications using Entity Framework Core...
2016-10-28 10:42:00
128
转载 关于如何使用Identity的文献
有几篇文件,深入浅出地讲解了如何一步一步的使用Identity,感觉十分有用,留下链接,备查。1. Configuring Db Connection and Code-First Migration for Identity Accounts in ASP.NET MVC 5 and Visual Studio 2013 虽然该文章内容基于MVC 5,但是对ASP.N...
2016-10-25 18:15:00
131
转载 Security » Authorization » 通过映射限制身份
Limiting identity by scheme¶通过映射限制身份(这部分有好几个概念还不清楚,翻译的有问题)36 of 39 people found this helpfulIn some scenarios, such as Single Page Applications it is possible to end up with multiple authent...
2016-10-25 14:34:00
160
转载 Security » Authorization » 基于视图的授权
View Based Authorization¶基于视图的授权44 of 46 people found this helpfulOften a developer will want to show, hide or otherwise modify a UI based on the current user identity. You can access th...
2016-10-25 10:32:00
111
转载 Security » Authorization » 基于资源的授权
Resource Based Authorization¶基于资源的授权68 of 73 people found this helpfulOften authorization depends upon the resource being accessed. For example a document may have an author property. Only t...
2016-10-25 10:09:00
214
转载 Security » Authorization » 要求处理器中的依赖注入
Dependency Injection in requirement handlers¶30 of 32 people found this helpfulAuthorization handlers must be registered in the service collection during configuration (using dependency injec...
2016-10-24 17:54:00
305
转载 Security » Authorization » 基于自定义策略的授权
Custom Policy-Based Authorization¶基于自定义策略的授权98 of 108 people found this helpfulUnderneath the covers the role authorization and claims authorization make use of a requirement, a handler for ...
2016-10-24 17:41:00
206
转载 Security » Authorization » 基于声明的授权
Claims-Based Authorization¶基于声明的授权142 of 162 people found this helpfulWhen an identity is created it may be assigned one or more claims issued by a trusted party. A claim is name value pair ...
2016-10-24 11:53:00
142
转载 Security » Authorization » 基于角色的授权
Role based Authorization¶基于角色的授权133 of 153 people found this helpfulWhen an identity is created it may belong to one or more roles, for example Tracy may belong to the Administrator and User...
2016-10-23 17:50:00
198
转载 Security » Authorization » 简单授权
Simple Authorization¶简单授权82 of 86 people found this helpfulAuthorization in MVC is controlled through the AuthorizeAttribute attribute and its various parameters. At its simplest applying th...
2016-10-23 11:14:00
107
转载 Security » Authorization » 介绍
Introduction¶介绍77 of 87 people found this helpfulAuthorization refers to the process that determines what a user is able to do. For example user Adam may be able to create a document library...
2016-10-23 10:49:00
108
转载 Authentication和Authorization的区别
搞不太清楚Authentication和Authorization的区别,在网上搜了一下,lucky16的一篇文章讲的通俗,看了就懂,记录下来:你要登机,你需要出示你的身份证和机票,身份证是为了证明你张三确实是你张三,这就是 authentication;而机票是为了证明你张三确实买了票可以上飞机,这就是 authorization。 在 computer science 领域再...
2016-10-23 10:14:00
132
转载 Security » Authentication » Identity介绍
Introduction to Identity¶By Pranav Rastogi, Rick Anderson, Tom Dykstra, Jon Galloway and Erik Reitan ASP.NET Core Identity is a membership system which allows you to add login functionality ...
2016-10-22 10:28:00
303
转载 解决asp.net Core Mvc网页汉字乱码问题
跟着www.asp.net网页的教程做电影网站的例子时,将一些英文标签和按钮改成了汉字的,结果出现了乱码。 在网上搜索这方面的信息也不太多,看到大家众说纷纭,最后有解决问题的,也没有说清楚具体的办法,逐一尝试,问题得以解决。 记录下来,备忘。1. 问题现象 从下面的截图可以看出:乱码部分有:Title部分、本页面View的<h&g...
2016-10-19 11:04:00
822
转载 DbInitializer.cs初始化过程中context.entityName.Add()遇到的类型不匹配错误
用Asp.Net Core+EF Core建立一个测试项目过程中,使用DbInitializaer.cs进行数据库表的初始化工作,当项目测试运行时执行到context.实体名.Add()时,提示错误信息:The 'UserStatusID' on entity type 'UserStatus' does not have a value set and no value...
2016-10-17 14:32:00
146
转载 EF Core » 关系
对初学者理解关系很有用,先留下来,有时间边看边翻译。Caution 注意This documentation is for EF Core. For EF6.x and earlier release see http://msdn.com/data/ef.Relationships¶A relationship defines how two entities...
2016-10-15 16:41:00
131
转载 EF Core » 影子属性
Caution:注意This documentation is for EF Core. For EF6.x and earlier release see http://msdn.com/data/ef.该文本用于EF Core。EF6.x和更早的版本请参看:http:msdn.com/data/ef。Shadow Properties¶Shadow propert...
2016-10-15 16:18:00
207
转载 如何增加Asp.Net Core生成的模板网站中用户信息表中的列(AspNetUsers)
环境:1.VS2015 Community 14.0.25431.01 Update 3;2.其他环境(具体哪一个影响不太清楚,都列在这儿)使用的系统模板利用系统提供的模板,并选择个人身份验证。如图:问题:模板提供的身份认证数据库中的AspNetUsers表,需要根据需要增加列。以下图为例,绿色框中的列都是模板默认的,我要增加一列(以Te...
2016-10-12 11:19:00
422
转载 Working with Data » Getting started with ASP.NET Core and Entity Framework Core using Visual Studio ...
Migrations¶4 of 4 people found this helpfulThe Contoso University sample web application demonstrates how to create ASP.NET Core 1.0 MVC web applications using Entity Framework Core 1.0 and V...
2016-10-10 15:00:00
139
转载 ASP.NET Core身份识别
Introduction to Identity66 of 93 people found this helpfulBy Pranav Rastogi, Rick Anderson, Tom Dykstra, Jon Galloway and Erik ReitanASP.NET Core Identity is a membership system which allow...
2016-10-09 10:54:00
197
转载 如何组织较大项目的MVC文件夹结构
现在还用不到,拷贝下来备用,原文链接2016 年 9 月第 31 卷,第 9 期ASP.NET Core - ASP.NET Core MVC 的功能切分作者 Steve Smith | 2016 年 9 月 | 获取代码大型 Web 应用比小型 Web 应用需要更好的组织。在大型应用中,ASP.NET MVC(和 Core MVC)所用的默认组织结构开始...
2016-10-09 09:15:00
260
转载 Working with Data » Getting started with ASP.NET Core and Entity Framework Core using Visual Studio ...
Creating a complex data model 创建复杂数据模型8 of 9 people found this helpfulThe Contoso University sample web application demonstrates how to create ASP.NET Core 1.0 MVC web applications using Enti...
2016-10-04 20:34:00
249
转载 Working with Data » Getting started with ASP.NET Core and Entity Framework Core using Visual Studio...
Sorting, filtering, paging, and grouping7 of 8 people found this helpfulBy Tom DykstraThe Contoso University sample web application demonstrates how to create ASP.NET Core 1.0 MVC web appli...
2016-10-02 11:48:00
186
转载 Working with Data » Getting started with ASP.NET Core and Entity Framework Core using Visual Studio ...
Create, Read, Update, and Delete operations¶5 of 5 people found this helpfulBy Tom DykstraThe Contoso University sample web application demonstrates how to create ASP.NET Core 1.0 MVC web a...
2016-09-30 16:50:00
260
转载 Working with Data » 使用Visual Studio开发ASP.NET Core MVC and Entity Framework Core初学者教程...
原文地址:https://docs.asp.net/en/latest/data/ef-mvc/intro.htmlThe Contoso University sample web application demonstrates how to create ASP.NET Core 1.0 MVC web applications using Entity Framework C...
2016-09-29 13:04:00
347
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人