3-tier Asp.Net AJAx And OpenAccess

Thread is closed for posting
2 posts, 0 answers
  1. Alex
    Alex avatar
    10 posts
    Member since:
    Jun 2008

    Posted 25 Nov 2008 Link to this post

    Hello

    Much like the OpenAccess ORM tool, and not as well known Implement I have a million questions, but would be starting the following:
    I have a web application where the use pattern of three layers very similar to the "http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=416", where the layer DAL control the entry, selection and updating through classes, a class BLL later, I gathered the information necessary to show the second Parameters and finally presenting them in a website.
    At present the evidence that I have with OpenAccess ORM is to make the reverse Maping and where there is no will to continue as the insertion, removal, consultation Etc. .. data.
    Check help on this OpenAccess tool but I just layer DAL, I want a little more than 3-layer approach in order to understand and complement my software, only if it is necessary that I might have the solution in my nose and did not see or understand.

    I thank an example of 3 layers of management, are of the inclusion of insertion, edits and deletions of data, facts across Visual Basic.

    Finally my software is Spanish and I have trouble with the letter "N", but it is a minor problem but it can take account in the time to do the reverse mapping.

    Thanks Alex
  2. Jan Blessenohl
    Admin
    Jan Blessenohl avatar
    707 posts

    Posted 28 Nov 2008 Link to this post

    Hello Alex,

    We are working on some examples with WCF.

    You should just give out the persistent objects via your service. You just have to make sure the the ObjectScope lives as long as the service. If you dispose the ObjectScope in the service dispose method you are on the right way.

    To persist the changes that you got from the client you can use the ObjectNetworkAttacher that comes in the src directory of the OpenAccess product.

    public object CommitChanges(object o)  
    {  
        ObjectScope.Transaction.Begin();  
        object ret = Telerik.OpenAccess.Helper.ObjectNetworkAttacher.AttachXML(ObjectScope, o);  
        ObjectScope.Transaction.Commit();  
        return ret;  
    }  
     


    Regards,
    Jan Blessenohl
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top