Skip to content

Instantly share code, notes, and snippets.

@jenseralmeida
jenseralmeida / UnitTest1.cs
Last active July 15, 2019 22:36
JonPSmith/EfCore.GenericServices Read-only entity properties causes null exception (https://github.com/JonPSmith/EfCore.GenericServices/issues/30)
using GenericServices;
using GenericServices.Setup;
using Microsoft.EntityFrameworkCore;
using Xunit;
namespace readonly_property
{
public class UnitTest1
{
[Fact]
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<RootNamespace>EfCore.GenericServices.Testing</RootNamespace>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>