
EF Core
文章平均质量分 93
DeepMinder
山野草民
展开
-
Configure many-to-many
ef relationship原创 2022-03-12 18:28:44 · 534 阅读 · 0 评论 -
codefirst one-to-zero-or one
Configure One-to-Zero-or-One Relationship:Here, we will configure One-to-Zero-or-One relationship between two entities, e.g. Entity1 can be associated with zero or only one instance of Entity2.Take an example of the following Student and StudentAddress原创 2022-03-12 18:23:01 · 492 阅读 · 0 评论 -
Helm3安装
安装Helm:1. 运行如下命令Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor3072; iex ((New-ObjectSystem.Net.WebClient).DownloadString('https://chocola..原创 2020-12-29 08:25:38 · 1864 阅读 · 0 评论 -
k8s dashboard访问
Dashboard默认访问地址:http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/获取tokenkubectl get secret -n kube-systemkubectl describe secret -n=kube-system default-token-tl6cs原创 2020-12-28 08:12:06 · 1101 阅读 · 0 评论 -
.net core 3.1 swagger配置
安装SwashBuckle.aspnetcoreStartup.csusing System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Threading.Tasks;using Microsoft.AspNetCore.Builder;using Microsoft.AspNetCore.Hosting;using Microsoft.AspNetCore.Mv.原创 2020-11-12 10:51:21 · 595 阅读 · 0 评论 -
FluentValidation一个好用的实体验证库
FluentValidation验证参考:http://www.c-sharpcorner.com/UploadFile/3d39b4/Asp-Net-mvc-validation-using-fluent-validation/创建一个Customer类public class Customer { public string Name { get; set; } public string Email { get; set; } }引用F原创 2020-11-11 17:34:52 · 538 阅读 · 0 评论 -
EF CORE命令的小技巧
1、Update-Database -Migration:0 (删除表结构)2、Remove-Migration (删除上次add-migration生成的迁移文件)原创 2020-11-10 16:21:13 · 316 阅读 · 0 评论 -
Entity Framework 实体关系总结:one-to-one, one-to-many, many-to-many
Entity Framework 实体关系总结:one-to-one, one-to-many, many-to-many通过Entiy Framework实践系列文章,理了理 Entity Framework 的实体关系。为什么要写文章来理清这些关系?“血”的教训啊,刚开始使用 Entity Framework的时候,由于没有静下心来认真理清关系,走了一些"痛不欲生"的弯路。而我们目前开发的项目都在使用 Entity Framework,为了避免其他人再经历"痛不欲生"的弯路。于是下定决心边...转载 2020-11-09 20:30:02 · 743 阅读 · 0 评论 -
EF Core与C# 数据类型映射关系
C# 数据类型 映射到SQL Server的数据类型 int int string nvarchar(Max) decimal decimal(18,2) float real byte[] varbinary(Max) datetime datetime bool bit byte tinyint shor...原创 2018-11-30 16:04:54 · 4002 阅读 · 1 评论