Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "bilalhaidar"

So I don't use the OData modude by ABP?

Where shall I configure oData? In the WebApi project? Using PostInitialize?

Even when I call: <a class="postlink" href="http://localhost:6240/odata/$metadata#Pocs">http://localhost:6240/odata/$metadata#Pocs</a>

I don't get all fields!

I am not sure if oData is working fine in Abp.

What's the workaround? Any idea?

Thanks

No problem. I need such detail as to understand how things run and that way I can debug issues more. Thanks

I just followed the documentation you have on this topic. Part of the fields are returned but not all. Mostly all fields created by Abp like Creation... and 1 property from my entity.

This is what I've added on the .WebApi Project.

/// <summary>
    /// Web API layer of the application.
    /// </summary>
    [DependsOn(typeof(AbpWebApiModule), typeof(OnlineSystemsApplicationModule), typeof(AbpWebApiODataModule))]
    public class OnlineSystemsWebApiModule : AbpModule
    {

public override void PreInitialize()
        {
            var builder = Configuration.Modules.AbpWebApiOData().ODataModelBuilder;

            //Configure your entities here...
            builder.EntitySet<PersonofConcern>("PersonofConcern");
        }

public class PersonofConcernController : AbpODataEntityController<PersonofConcern>
    {
        public PersonofConcernController(IRepository<PersonofConcern> repository)
            :base (repository)
        {

        }
    }

On this page: <a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/Web-API-Controllers">https://aspnetboilerplate.com/Pages/Doc ... ontrollers</a>

Check the wrapping section towards the end of the page.

And then, this class below, when is it used then?

protected virtual void WrapResultIfNeeded(HttpRequestMessage request, HttpResponseMessage response)
        {
            if (!response.IsSuccessStatusCode)
            {
                return;
            }

OK thanks. In case I need more help on this topic I will post again here.

According to what you said: This class is called only for successful results and...

And given the documentation: ASP.NET Boilerplate does not wrap Web API actions by default if the action has successfully executed. But it handles and wraps for exceptions.

There is still something missing.

For MVC or Web API Controllers included, do I need to place them in certain folders Like Controllers or so? OR just extend the proper base classes like AbpController?

Thanks

Most welcome and its our duty all of us to help each other here.

The entity I am using contains many fields more than 30. It is a single form that all data are related and hence I had to place them all in one entity.

More info is needed from my side?

Thanks

Showing 141 to 150 of 461 entries