摘要: <!-- flex的弹性布局 --> <template> <div class="box"> <div class="box1">1</div> <div class="box1">2</div> <div class="box1">3</div> <div class="box1">1</div 阅读全文
posted @ 2024-05-24 09:22 爱晒太阳的懒猫。。 阅读(3) 评论(0) 推荐(0) 编辑
摘要: ● First:返回序列中的第一条记录,如果没有记录,则引发异常。 ● FirstOrDefault:返回序列中的第一条记录,如果没有记录,则返回默认值。 ● Single:返回序列中的唯一记录,如果没有或返回多条记录,则引发异常。 ● SingleOrDefault:返回序列中的唯一记录;如果该序 阅读全文
posted @ 2024-05-20 14:26 爱晒太阳的懒猫。。 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 新版EF 添加导航就i自动添加外键了有了Has ,有外键,再删除Has,没有删除外键 单向导航也有外键 其实对于导航属性,我不倾向用,随着表的结构复杂,导航属性存在性能问题因为导航属性肯定是主外键关联的,你做删除,修改操作,还要检查从表如果是简单的表结构设计,写代码比较方便 不建议使用外键约束(fo 阅读全文
posted @ 2024-05-20 11:34 爱晒太阳的懒猫。。 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1. <style type="text/css"> @import url("001.css"); </style> 2.行内大于内部,引用 行内<div style="border....">同级别越靠近,权重越大 阅读全文
posted @ 2024-05-15 11:51 爱晒太阳的懒猫。。 阅读(1) 评论(0) 推荐(0) 编辑
摘要: <button @click="handleClick(item, $event)"/> 阅读全文
posted @ 2024-05-11 13:30 爱晒太阳的懒猫。。 阅读(8) 评论(0) 推荐(0) 编辑
摘要: ///ffff const res = await instancs.post( "Know/DocList_Insert", { Id: 1, Name: "酷酷酷酷酷", ClientId: 1, EqId: 1, }, { headers: { "Content-Type": "applica 阅读全文
posted @ 2024-05-11 13:29 爱晒太阳的懒猫。。 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 是集合类型的基础,是一个集合对象,可以遍历 阅读全文
posted @ 2024-05-11 13:10 爱晒太阳的懒猫。。 阅读(2) 评论(0) 推荐(0) 编辑
摘要: //FFFF //第一次初始化数据库 Add-Migration InitDBMigration Update-Database //后续更新使用 Add-Migration xx Update-Database 阅读全文
posted @ 2024-05-11 10:25 爱晒太阳的懒猫。。 阅读(7) 评论(0) 推荐(0) 编辑
摘要: //fffff char [] a = {"1","2","3"}string b = new string(a)string[] a = {"1","2","3"}string b = String.Join("",a)String类的属性与方法属性:字符数量, Length a:"1111222 阅读全文
posted @ 2024-05-10 23:28 爱晒太阳的懒猫。。 阅读(2) 评论(0) 推荐(0) 编辑
摘要: //fff int [] a;int [] a = new int[5]//默认0int [] a = new int [5] {1,1,1,1,1}int [] a = {1,1,1,1}int [] a = new int[] {1,1,1}int [] b = a//两个指向同一个内存地址 阅读全文
posted @ 2024-05-10 23:12 爱晒太阳的懒猫。。 阅读(3) 评论(0) 推荐(0) 编辑