MongoRepository icon indicating copy to clipboard operation
MongoRepository copied to clipboard

Support for ASP.NET Core

Open khushalpatel1981 opened this issue 9 years ago • 10 comments

Build failed when building with .NET Platform 5.4 (ASP.NET Core)

khushalpatel1981 avatar Mar 06 '16 12:03 khushalpatel1981

What is .NET Platform 5.4? And if you're reporting a failure, please report the error message you got. I can't troubleshoot anything with this information.

RobThree avatar Mar 06 '16 18:03 RobThree

This happens when I add nuget to the project which is a .NET Framework 4.6 Class Library and its going to used ASPNET Core Web API project

khushalpatel1981 avatar Mar 08 '16 02:03 khushalpatel1981

@RobThree @tegeek any good news!

khushalpatel1981 avatar Mar 12 '16 02:03 khushalpatel1981

Please don't kick this issue for attention; if there's anything to report we'll let you know. Until then you're free to investigate yourself: the source is available and if you find the problem yourself you're welcome to report it.

RobThree avatar Mar 12 '16 14:03 RobThree

If MongoDB driver works with .NET Core 5.4, then MongoRepository shouldnt be a problem at all.

MongoRepo is wrapper on top of MongoDB driver, there isn't any code in MongoRepo which should be a problem for Core 5.4 but I can understand that MongoDB driver might have problems with Core 5.4.

tegeek avatar Mar 17 '16 08:03 tegeek

I think we should just have update the legacy mongosharpdriver to the new MongoDb.Driver. I'm going to test that, and give feedbacks

Willjobs94 avatar Nov 21 '16 22:11 Willjobs94

Yo, @Willjobs94 did you get anywhere with updating legacy mongosharpdriver? I want to use MongoRepository but don't want to be reinventing any wheels.

walterpinson avatar Dec 12 '16 22:12 walterpinson

@walterpinson, I didn't test it, sorry.

Willjobs94 avatar Dec 12 '16 22:12 Willjobs94

I was able to built MongoRepository for .NetCore 2.0 it after removing following method from IRepository IDisposable RequestStart(); void RequestDone(); & following methods from IRepositoryManager long GetTotalDataSize(); long GetTotalStorageSize();

@RobThree Do you want me to check in?

hardikphd avatar Sep 09 '17 14:09 hardikphd

@RobThree Do you want me to check in?

You can always do a PR.

RobThree avatar Sep 12 '17 12:09 RobThree