using System; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Loggi ...
分类:
Web程序 时间:
2021-02-25 11:54:20
阅读次数:
0
一图胜千言,如果图解没有阐明问题,那么你可以借助它的标题来一窥究竟。 1、字符串不变性 下面这张图展示了这段代码做了什么 String s = "abcd"; s = s.concat("ef"); 2、equals()方法、hashCode()方法的区别 HashCode被设计用来提高性能。equ ...
分类:
编程语言 时间:
2021-02-24 13:23:06
阅读次数:
0
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { /* 贪心算法(集 ...
分类:
编程语言 时间:
2021-02-20 12:42:12
阅读次数:
0
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u ...
分类:
其他好文 时间:
2021-02-15 12:42:07
阅读次数:
0
按照教程创建了一个 Blazor Server 项目 教程地址: https://docs.microsoft.com/zh-cn/aspnet/core/tutorials/build-a-blazor-app?view=aspnetcore-5.0 还有一个教程是:https://www.cnb ...
分类:
数据库 时间:
2021-02-10 13:20:05
阅读次数:
0
因为是Asp.net初学者,照搬网上的例子用到程序中,但是人家的代码中List类型用到了Where方法,为什么我的List的类型中就找不到Where方法呢? 问了万能的度娘,终于找到答案. 原来, 还需要引用Linq命名空间才行. 添加 using System.Linq; 这时,在List类型的变 ...
分类:
其他好文 时间:
2021-02-06 12:18:13
阅读次数:
0
EDM entity data model 实体数据模型 Conceptual models 概念模型 Mappings 连接 Storage models 存储模型 Orm object relational mapping 对象关系映射 EF entity framework 是基于ADO.Ne ...
分类:
数据库 时间:
2021-02-06 12:17:48
阅读次数:
0
今天看到一篇博文EntityFramework Core如何映射动态模型? ,文章讲的是如何用EF动态创建表的问题,比如根据时间动态创建一个表,这种场景常出现在应用系统的日志记录功能中。原文用EF实现非常复杂,相比而言,SOD框架就要简单很多。 下面直接给出SOD框架的方案。 public clas ...
分类:
其他好文 时间:
2021-01-30 11:40:45
阅读次数:
0
一、代码实现 1、AlternateDataStream.cs using System; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Text; namespace F ...
Bootstratp Blazor组件库,功能多,例子多,前端小白,js小白的最佳方案!几乎不用写一行js代码。 现在我们使用他的Table组件来完成一次增删改查! 首先安装vs2019 最新版本。 1.创建新项目,选择Blazor应用! 2.我们选择Server应用,我建议小白最好从Server应 ...
分类:
其他好文 时间:
2021-01-26 12:07:26
阅读次数:
0