henkmollema / Dapper-FluentMap

Provides a simple API to fluently map POCO properties to database columns when using Dapper.
MIT License
429 stars 88 forks source link

Could not load type 'IColumnNameResolver' from assembly Dommel, Version=2.0.0.0 #117

Closed gkurbesov closed 4 years ago

gkurbesov commented 4 years ago

i'm using Dapper.FluentMap and i see exception when call FluentMapper for Dommel.

using Dapper.FluentMap;
using Dapper.FluentMap.Dommel;

...

 public void FluentMapperInit()
        {
            FluentMapper.Initialize(config =>
            {
                config.AddMap(new Email.MailDataMap());

                config.AddMap(new Fcm.FcmDataMap());
                config.AddMap(new Fcm.FcmHookMap());

                config.AddMap(new Telegram.TelegramDataMap());
                config.AddMap(new Telegram.TelegramHookMap());

                config.ForDommel(); // this show exception
            });
        }

System.TypeLoadException: "Could not load type 'IColumnNameResolver' from assembly 'Dommel, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'."

image

my nugets:

image

igordibuccio commented 4 years ago

I have this same problem. Can anyone help?

TroySchmidt commented 4 years ago

https://github.com/henkmollema/Dapper-FluentMap/pull/105 I submitted a pull request months ago to resolve the issue since a major revision has breaking changes for the dependency. It hasn't been approved and now v2 is official.

nullpainter commented 4 years ago

Hi @henkmollema , can you indicate why this issue was closed? Is there a way to use Dapper.FluentMap with Dommel 2, or should we consider Dapper.FluentMap to no longer be supported with Dommel?

henkmollema commented 4 years ago

Because there is a PR by @TroySchmidt which fixes this issue.

gkurbesov commented 4 years ago

@henkmollema , @TroySchmidt, But it still doesn't work. I updated all dependencies and it also throws an exception

guipcarvalho commented 4 years ago

I'm having the same issue here

henkmollema commented 4 years ago

Should be fixed in Dapper.FluentMap.Dommel v2.0.

ghost commented 3 years ago

{"Could not load type 'IColumnNameResolver' from assembly 'Dommel, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null'.":"IColumnNameResolver"} image

Came across this issue today