Part 5 - ASP NET Web API - Attribute Routing

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Your teaching style is so simple and good and I appreciate you so much.

stevewaugh
Автор

Thanks a lot for the Tutorials, Its very informative.

kiranvarma
Автор

Plz Plz Plz continue this series . THank you so far.

jeewanintube
Автор

If Possible, I request you to continue the tutorials further to explore more in the Web API

kiranvarma
Автор

Dear Mr,

In case I need to use a stored procedure from DB in sql server and this stored procedure has many parameters and many join to many tables and return many fields from many table how to call and use it with WEB API Controller?

Many thanks and best regards,


Example : EF

public virtual DbSet<T_Clubs> T_Clubs { get; set; }
public virtual DbSet<T_Games> T_Games { get; set; }
public virtual DbSet<T_Reservations> T_Reservations { get; set; }


//HOW TO USE THIS WITH WEB API Controller this a stored procedure in DB ?!! PLease advice
public virtual int clubId)
{
var clubIdParameter = clubId.HasValue ?
new ObjectParameter("ClubId", clubId) :
new ObjectParameter("ClubId", typeof(int));

return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetReservationsByClubId", clubIdParameter);
}

//HOW TO USE THIS WITH WEB API Controller this a stored procedure in DB ?!! PLease advice
public virtual GetReservations()
{
return
}


//HOW TO USE THIS WITH WEB API Controller this a stored procedure in DB ?!! PLease advice?

Thank you and best regards

creatortrainer
Автор

Thanks..Its very helpful....Can we implement attribute routing in controller label.?
Whats the difference between put and post method ? we can update using post method so why need of put ?

mehedihasan
Автор

Hay Ripon, you can still achieve routing by providing ID in old routing.. but now in attribute routing you have mentioned "id/somethingstring" what is use of that? I mean i still have confusion over attribute routing and old routing.
Thanks.

sanjaythorat
Автор

Dada want to know about all API to adding vendors and authorize for upload product and link of banking authentication . and public user login please dada a ma ke send korun

sudhirchettri
Автор

can you give us the source code ? thanks.

canbepi
Автор

Dada want to know about all API to adding vendors and authorize for upload product and link of banking authentication . and public user login please dada a ma ke send korun

sudhirchettri