alexxjk
alexxjk

Reputation: 1701

ASP.NET 5 and DocumentDb

I want to use Azure DocumentDb in my ASP.NET 5 project and it seems that DocumentDb .NET SDK doesn't work with DNX yet. Is it so? And if Yes maybe there is a workaround here?

Upvotes: 2

Views: 883

Answers (2)

Larry Maccherone
Larry Maccherone

Reputation: 9523

I don't know the status of work on supporting DNX, but assuming that's not going to come in time, I can think of several ways to work around it:

  1. Hit the DocumentDB REST API directly
  2. Run edge.js in process inside .NET and use the node.js SDK although there seems to be some question about what platforms are supported by edge.js.
  3. Use node.js instead of .NET. My experience helping .NET developers ramp up on DocumentDB has convinced me that the JavaScript-centric design of DocumentDB means, it's much easier to use from node.js than it is from .NET, IMHO. Many of the .NET problems come from the difference between strongly typed .NET and highly dynamic JavaScript. Stored procedures are written in JavaScript not .NET.

Upvotes: -1

Ryan CrawCour
Ryan CrawCour

Reputation: 2728

You can get ASP.NET 5 to target the full .NET Framework as opposed to Core. The biggest advantage of targeting Core is that it would allow you to run outside of Windows, but if this is not a requirement for you then the full framework should be fine.

Upvotes: 3

Related Questions