上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 19 下一页
摘要: 帮助类 using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; using xFramework.Enums; 阅读全文
posted @ 2021-09-03 17:52 Robot-Blog 阅读(64) 评论(0) 推荐(0)
摘要: 1.定义lambda的参数,型如我们常写的“x=>”: using System.Linq.Expressions; var type = typeof(CustClass); ParameterExpression parameter = Expression.Parameter(type, "x 阅读全文
posted @ 2021-09-01 20:20 Robot-Blog 阅读(333) 评论(0) 推荐(0)
摘要: 1.后端批量插入代码 using (var connection = new System.Data.SqlClient.SqlConnection("data source=XXX;initial catalog=XXX;persist security info=True;user id=XXX 阅读全文
posted @ 2021-08-30 14:04 Robot-Blog 阅读(599) 评论(0) 推荐(0)
摘要: SQL MERGE INTO TableName TARGET USING ( SELECT :USERID0 AS USERID, :DISPLAY_NAME0 AS DISPLAY_NAME, :EMAIL0 AS EMAIL, :ROWUID0 AS ROWUID, :ROWSTATE0 AS 阅读全文
posted @ 2021-08-30 13:52 Robot-Blog 阅读(75) 评论(0) 推荐(0)
摘要: 1.添加Nuget包: Dapper Oracle.ManagedDataAccess 2.添加帮助类:OracleDynamicParameters using Dapper; using Oracle.ManagedDataAccess.Client; using System.Data; us 阅读全文
posted @ 2021-08-30 10:44 Robot-Blog 阅读(250) 评论(0) 推荐(0)
摘要: 重定向指定链接: using System.Net.Http;using System.Net.Http.Headers; var location = $"{HttpContext.Current.Request.Url.Scheme}://{HttpContext.Current.Request 阅读全文
posted @ 2021-08-20 14:54 Robot-Blog 阅读(713) 评论(0) 推荐(0)
摘要: 1.添加Nuget: NLog 2.配置 NLog.config <?xml version="1.0" encoding="utf-8" ?> <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http:// 阅读全文
posted @ 2021-08-13 17:41 Robot-Blog 阅读(95) 评论(0) 推荐(0)
摘要: 1.添加Nuget: Xunit.DependencyInjection install-package Xunit.DependencyInjection -project CustProjectName 2.Xunit项目根目录添加文件: Startup.cs using Microsoft.E 阅读全文
posted @ 2021-08-13 14:10 Robot-Blog 阅读(459) 评论(0) 推荐(0)
摘要: 1.项目根目录找到[.vs]隐藏文件夹:文件夹 =》 显示隐藏文件 2.删除隐藏文件夹 3.重启项目 阅读全文
posted @ 2021-08-09 10:07 Robot-Blog 阅读(180) 评论(0) 推荐(0)
摘要: 1.代码如下: var type = typeof(CodeBuilderVo); var itemDbModel = new CodeBuilderVo(); var properArr = type.GetPublicProperties(); foreach (var itemProper i 阅读全文
posted @ 2021-08-05 17:33 Robot-Blog 阅读(156) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 19 下一页