reply regarding the last answer RRS feed

All replies

  • Hello,

    First off you should not write a post like this without the former post here. If I didn't reply to the other post I would of had to search.

    In reply to your question, you could do this with Entity Framework which initially there is a setup process along with you should not mix it with SqlClient data provider. There are TableAdapter or DataAdapter methods and they can be problematic also.

    In short, the underly logic remains the same no matter which way you go, check the current quantity, determine if it's possible to order then act upon that logic to subtract or deny.

    Personally I use Entity Framework, if not using Entity Framework I would go with that I showed.

    To get an idea how to use Entity Framework in a Windows form solution see the follow MSDN code sample I did. Note I use advance methods within this code sample so it's not for beginners e.g. DTO (Data Transfer Objects) are used, custom BindingList also.

    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
    VB Forums - moderator
    profile for Karen Payne on Stack Exchange, a network of free, community-driven Q&A sites

    Monday, March 13, 2017 10:44 AM