Skip to Content
author's profile photo Former Member
Former Member

Entity an application service Operation!!

Hi Experts,

A small question!!! Can I create an Entity service operation without any custome key and without giving any inpu parameter and the corresponding Application service operation in the same way??

This is so that someone can directly get access to all the data stored in the local persistency in the Entity service without giving any input parameters to access them???

Thanks,

vikram..

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 13, 2007 at 10:47 AM

    Hi Vikram,

    You can create it. Create an operation within entity service, do not set any input parameter. Within your application service go to dependency tab page and set the dependeny with your entity service. Then within the operation tab page of your application service create an operation of type "Query" abd within data source select your entity service. Now within inplementation tab page of your application service select the operation which you have created. Now put the following code within the custom codding area of your operation.

    retValue = null;

    <Name of Entity>ServiceLocal cs = this.get<Name of Entity>Service();

    retValue = cs.<Name of Operation of Entity service>;

    I think this will solve your problem.

    Thanks

    Chandan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.