Skip to content
This repository was archived by the owner on Apr 19, 2023. It is now read-only.
This repository was archived by the owner on Apr 19, 2023. It is now read-only.

FluentMap File Load Exception with Dapper 1.50.7 #83

@jmalczak

Description

@jmalczak

Hi. Following test app throws file load exception on .net core 2.2

using Dapper.FluentMap;
using Dapper.FluentMap.Mapping;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            FluentMapper.Initialize(c =>
            {
                c.AddMap(new TestMap());
            });
        }
    }

    public class Test
    {
        public string TestField { get; set; }
    }

    public class TestMap : EntityMap<Test>
    {
        public TestMap()
        {
            Map(p => p.TestField).ToColumn("Test");
        }
    }
}

With following package references

  <ItemGroup>
    <PackageReference Include="Dapper" Version="1.50.7" />
    <PackageReference Include="Dapper.FluentMap" Version="1.7.0" />
  </ItemGroup>

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions