Dapper apps in Metro

Is there a way to incorporate Dapper into metro apps? It relies on System.Data, which is missing from WinRT. If there is no similar structure that can be used?

+4
source share
1 answer

Is there a way to incorporate Dapper into metro apps?

No. As you noticed, the absence of System.Data is pretty much a show-stopper, however, in addition, WinRT also does not support metaprogram support, so the whole kernel will need to be rewritten to use regular (i.e. slow) reflection. There are some complicated hoops you can jump to get around this, but without System.Data this seems like a lost cause.

Basically, the intention with WinRT (as I understand it) is to consume your data from things such as web services, the classic "smart client" model, not the "rich client".

So you might think:

  • server (full .NET)
    • using "dapper" to access data
    • display of any call / serialization protocol
  • client (.NET for applications in the Windows Store, or be that as it may, is the term today)
    • consumes some call / serialization protocol

Strictly speaking, you can IIRC break all the rules and just refer to .NET anyway, but it will not pass any MS test and will not be a proper metro application of the Windows Store.

+3
source

Source: https://habr.com/ru/post/1437783/


All Articles