.net - Switching to OR/M. Writing files while saving Objects -


I have this project where I am regular edo.

  • / Ul>

    When I make a new order, I attach a document. This document has been given an array of binary data (a PDF file) and when I save it, it writes binary content to the defined path. All this works and even transactions.

    Now, is it possible to use the same behavior as an OR / M? Obviously this is something that I have to generate or write manually on the top of the M / M code, but is it qualified in Linq-to-SQL or nHibernate? Which one would you recommend?

    Cards:

    / P>

    • ID
    • Serial
    • Pin
    • puk

    Modem:

  • IE
  • IMEI
  • Order:

    • ID
    • Accessories
    • < / Ul>

      Command lines:

      • ID
      • order_id
      • stuff

    • Identifier_id
    • Identifier_id
    • Identifier_id
    • Identifier_id
    • What I'm trying to do here is a specific card or hook to a specific modem for an OrderLine. For example, by entering 'modem' in identifier_name and id1. This system is currently the ADO. Works on the Net, but again, I wonder how easily it imitates in an OR / M. I have read that L2S only supports single-table heritage and I think it is clearly Something like multi-table is 'cheese'.

      Any help with this will be highly appreciated :) I search for a system can do either of these scenarios or change the other scenario somewhat if there is no other option .

    "post-text" itemprop = "text">

    I would definitely recommend NHibernate. All the things mentioned by you are possible. The first scenario is very straight forward:

    Institutes institutions and set data on them. Retain the file in the database on the Save to disk database.

    I will do my best to fulfill the exceptions - for the exceptions at the end, the account which requires rollback of the transaction or a corrupt written file is required to be removed.

    As part of the "Identifier_name" section, you can use legacy-mapping of both single tables and can be included in table types. But in your classrooms, a common base class should be shared to do this. Another approach - that matches your current perspective, but I'm not sure I would recommend in your situation - using "any" mapping, which supports NHibernate

    / Asper


    Comments

    Popular posts from this blog

    c# - ListView onScroll event -

    PHP - get image from byte array -

    Linux Terminal Problem with Non-Canonical Terminal I/O app -