摘要: 一、EF Core 默认约定的导航属性 1、如果两个类型之间找到一对导航属性,则它们将被配置为同一关系的反转导航属性。 public class Blog { public int BlogId { get; set; } public string Url { get; set; } public 阅读全文
posted @ 2021-12-10 13:42 netlock 阅读(1149) 评论(0) 推荐(1) 编辑
摘要: 1 static void Main(string[] args) { //各物品的概率保存在数组里 float[] area = new float[4]{ 0.980f, 0.550f, 0.230f, 0.010f }; //单次测试 //Console.WriteLine(Get(area) 阅读全文
posted @ 2021-12-10 13:39 netlock 阅读(1194) 评论(0) 推荐(0) 编辑