ASP.NET

Using LINQ to query three entitites. - Include path expression must refer to a navigation property defined on the type

守給你的承諾、 提交于 2020-07-06 04:37:08
问题 I am trying to get data from 3 entities. Exam, Objective and Objective detail. I want to be able to select this by exam name. Here is the code I am using: var result = await db.Exams .Include(e => e.Objectives) .Include(e => e.Objectives.SelectMany(o => o.ObjectiveDetails)) .Where(e => e.Name ==

Using LINQ to query three entitites. - Include path expression must refer to a navigation property defined on the type

江枫思渺然 提交于 2020-07-06 04:29:08
问题 I am trying to get data from 3 entities. Exam, Objective and Objective detail. I want to be able to select this by exam name. Here is the code I am using: var result = await db.Exams .Include(e => e.Objectives) .Include(e => e.Objectives.SelectMany(o => o.ObjectiveDetails)) .Where(e => e.Name ==

Is it possible to reference .net framework 4.7.2 class library from an ASP.NET Core MVC project?

风格不统一 提交于 2020-07-05 09:09:31
问题 I have an ASP.NET MVC 5 project which works well and it also references a .NET Framework 4.7.2 Class library which produces some CrystalReports. CrystalReports does not support .NET Core, so the class library will stay with full .NET Framework. Now, if I upgrade the ASP.NET MVC 5 to ASP.NET Core

Is it possible to reference .net framework 4.7.2 class library from an ASP.NET Core MVC project?

让人想犯罪 __ 提交于 2020-07-05 09:06:14
问题 I have an ASP.NET MVC 5 project which works well and it also references a .NET Framework 4.7.2 Class library which produces some CrystalReports. CrystalReports does not support .NET Core, so the class library will stay with full .NET Framework. Now, if I upgrade the ASP.NET MVC 5 to ASP.NET Core

C# Asyn. Socket Programming

故事扮演 提交于 2020-07-04 13:09:21
问题 Is it possible to unit test the Asyn. socket programming (using c#)? Provide some sample unit test code. 回答1: I assume you are testing some class of your own that uses .NET streams; let's call it MessageSender . Note that there is no reason to unit test the .NET streams themselves, that's

C# Asyn. Socket Programming

北慕城南 提交于 2020-07-04 13:09:01
问题 Is it possible to unit test the Asyn. socket programming (using c#)? Provide some sample unit test code. 回答1: I assume you are testing some class of your own that uses .NET streams; let's call it MessageSender . Note that there is no reason to unit test the .NET streams themselves, that's

C# Asyn. Socket Programming

纵然是瞬间 提交于 2020-07-04 13:08:42
问题 Is it possible to unit test the Asyn. socket programming (using c#)? Provide some sample unit test code. 回答1: I assume you are testing some class of your own that uses .NET streams; let's call it MessageSender . Note that there is no reason to unit test the .NET streams themselves, that's