上一页 1 2 3 4 5 6 7 ··· 11 下一页
摘要: 备份: 需要将 DB_SCJC改成自己的数据库。declare @filename varchar(255) set @filename ='C:\Pro\DB_SCJC_' + convert(varchar(50),getdate(),102) + '.bak' BACKUP DATABASE 阅读全文
posted @ 2020-12-23 09:28 阿旭92312 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 调用: typeof(EnterPriseState).GetDescriptionByEnmuAndValue(item.IsAudit.ParseToInt()) 方法: public static string GetDescriptionByEnmuAndValue(this Type en 阅读全文
posted @ 2020-12-17 20:05 阿旭92312 阅读(257) 评论(0) 推荐(0) 编辑
摘要: <input type="text" name="times" id="times" class="input" onclick="WdatePicker({ dateFmt: 'yyyy年第M季度', isQuarter: true, isShowOK: false, disabledDates: 阅读全文
posted @ 2020-12-17 13:49 阿旭92312 阅读(223) 评论(0) 推荐(0) 编辑
摘要: USE [master]ALTER DATABASE JYPT_DBSET RECOVERY SIMPLE WITH NO_WAITALTER DATABASE JYPT_DBSET RECOVERY SIMPLEGOUSE JYPT_DBDECLARE @logname VARCHAR(150)S 阅读全文
posted @ 2020-12-04 08:49 阿旭92312 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 搜索条件 获取最近一条 netcore查询mysql最大、条数等数据 获取实体详情 使用事务、回滚 sql搜索中添加In函数 linux中运行netcore项目 Linq中动态搜索功能 1、搜索条件 搜索条件映射成Sql语句有2种写法,第一种是把输入条件参数转成Expression表达式树,适合简单 阅读全文
posted @ 2020-12-03 14:04 阿旭92312 阅读(290) 评论(0) 推荐(0) 编辑
摘要: //根据某属性获取 public async Task<AreaEntity> GetEntityByAreaCode(string areaCode) { //todo根据……获取 return await this.BaseRepository().FindEntity<AreaEntity>( 阅读全文
posted @ 2020-12-02 14:28 阿旭92312 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 因MySql没有SqlServer中的Bit,因此在查找资料后使用tinyint。但在NetCore中对应的是byte,但在取值与赋值的时候提示各种转换错误。 后经查找资料,得出以下解决方案: 在数据库的连接字符串中添加TreatTinyAsBoolean=false 如: server=.;dat 阅读全文
posted @ 2020-12-02 14:25 阿旭92312 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 1.关于密码强度 密码强度有强弱之分,包含数字、字母和其他符号三者且长度不小于10的密码被称为强密码,只有其中一者或长度不大于6的密码是弱密码,其他密码是中等强度密码。 /// <summary> /// 密码强度 /// </summary> private enum Strength { Inv 阅读全文
posted @ 2020-09-18 11:48 阿旭92312 阅读(1721) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 用于Linq的去重,扩展方法需要放到静态类中 /// </summary> /// <typeparam name="TSource"></typeparam> /// <typeparam name="TKey"></typeparam> /// <param 阅读全文
posted @ 2020-08-20 11:44 阿旭92312 阅读(677) 评论(0) 推荐(0) 编辑
摘要: <li> <asp:LinkButton ID="btnSchExcel" runat="server" CssClass="daochu-view" OnClick="btnSchExcel_Click"><i></i><span style="display: inline-block; ver 阅读全文
posted @ 2020-07-24 09:36 阿旭92312 阅读(670) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 11 下一页