none
Repository & WindosForm

    Question

  • I've implemented methods in the Repository layer and now I want to use these methods in my winform's backend To work with databases what should I do?
    Tuesday, April 23, 2019 5:34 AM

All replies

  • Hi,

    This forum is discussing and asking questions about ADO.NET, EF or LINQ. According to the description, it is more related to architectural pattern. And this forum does not deal with issues related to architectural pattern.

    Thank you for your understanding.

    Regards,

    Kyle


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, April 23, 2019 9:52 AM
  • I've implemented methods in the Repository layer and now I want to use these methods in my winform's backend To work with databases what should I do?

    https://www.codeproject.com/Articles/128280/Architecture-Guide-Windows-Forms-Generics-Auto-Map

    It meets your requirement -- good luck.

    Tuesday, April 23, 2019 6:25 PM
  • I've implemented methods in the Repository layer and now I want to use these methods in my winform's backend To work with databases what should I do?

     public Xray_Database_Context(DbContextOptions<Xray_Database_Context> options) : base(options)
            {

            }


    Wednesday, April 24, 2019 3:54 AM
  •  public X_Database_Context(DbContextOptions<X_Database_Context> options) : base(options)
            {

            }

    How do i new a object from this context in codefirst?

    Wednesday, April 24, 2019 6:00 AM
  • EF can be discussed at the EF forum.

    https://social.msdn.microsoft.com/Forums/en-US/home?forum=adodotnetentityframework

    Wednesday, April 24, 2019 6:25 AM
  • What were you told about the Repository pattern in the EF forum?  You were replied to there, and yet,  you choose to ignore what you were being told and you post to the C# forum again?

    You were given a link in the EF forum where the generic Repository pattern using EF in a Windows form solution was given to you, and you blow it off?

    Wednesday, April 24, 2019 6:33 AM
  • Hi

    Thank you for posting here.

    Since this thread is duplicate with the following link, I will merge it.

    https://social.msdn.microsoft.com/Forums/en-US/55c036b9-44da-4bea-84a2-cbabfa241fba/repository-amp-windosform?forum=adodotnetentityframework

    The Visual C# forum discusses and asks questions about the C# programming language, IDE, libraries, samples, and tools.

    Best regards,

    Jack


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, April 24, 2019 7:20 AM
  • Hi

    Thank you for posting here.

    Since this thread is duplicate with the following link, I will merge it.

    https://social.msdn.microsoft.com/Forums/en-US/55c036b9-44da-4bea-84a2-cbabfa241fba/repository-amp-windosform?forum=adodotnetentityframework

    The Visual C# forum discusses and asks questions about the C# programming language, IDE, libraries, samples, and tools.

    Best regards,

    Jack


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, April 24, 2019 7:21 AM
  • Reply to duplicate post where poster got the example needed.

    https://social.msdn.microsoft.com/Forums/en-US/24a1db34-4f97-4813-9708-54535655f85f/repository-amp-windosform?forum=adodotnetentityframework

    Wednesday, April 24, 2019 8:33 AM