摘要:
解决方法即 where后加 .Compile() 阅读全文
摘要:
FieldInfo.SetValue的原型是:void SetValue(object obj, object value)当你传递一个值类型(结构是值类型)的时候,它要转化成object,也就是要装箱。而SetValue将作用在那个装箱产品上,而不是原来的那个结构。解决办法就是自己装箱和拆箱子: 阅读全文
摘要:
原文:http://www.codeproject.com/Articles/25487/Cryptographic-Interoperability-Keys DEMO: JAVA .Net C++ 阅读全文
摘要:
db.Categories .GroupJoin( db.Products, Category => Category.CategoryId, Product => Product.CategoryId, (x, y) => new { Catego... 阅读全文
摘要:
https://github.com/domaindrivendev/Ahoy打开nuget包管理器,搜索Swashbuckle打开Startup.cs文件在ConfigureServices方法下添加如下代码services.AddSwaggerGen();在Configure方法下添加如下代码a... 阅读全文
摘要:
将RouteConfig代码修改为如下 public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.Ignor... 阅读全文
摘要:
1. Open "SQL Server Configuration Manager"2. Click "SQL Server Services" on the left pane3. Right-click on your SQL Server instance name on the right ... 阅读全文
摘要:
单位米,算法来自百度http://api.map.baidu.com/library/GeoUtils/1.2/src/GeoUtils.jsCREATE FUNCTION [dbo].[ToDistance] ( @Lng1 FLOAT, @Lat1 FLOAT, @Lng2 F... 阅读全文
摘要:
链接:http://www.codeproject.com/Articles/675933/Returning-Multiple-Result-Sets-from-an-Entity-Fram案例:下载Create Visual Studio Project with Entity Data Mod... 阅读全文
摘要:
参考资料:https://msdn.microsoft.com/zh-cn/library/dd456847(v=vs.110).aspx http://stackoverflow.com/questions/12481868/how-to-use-scalar-valued-functio... 阅读全文