This is a migrated thread and some comments may be shown as answers.

3-tier Asp.Net AJAx And OpenAccess

1 Answer 156 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alex
Top achievements
Rank 1
Alex asked on 25 Nov 2008, 08:42 PM
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

1 Answer, 1 is accepted

Sort by
0
Jan Blessenohl
Telerik team
answered on 28 Nov 2008, 01:13 PM
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.
Tags
General Discussions
Asked by
Alex
Top achievements
Rank 1
Answers by
Jan Blessenohl
Telerik team
Share this question
or