The target framework of the WPF class library is .NET Core, it seems that the ADO.NET entity data model cannot be used directly. If you want to use the ADO.NET entity data model, please make sure that the target framework of the project is the .NET Framework. You can refer to links ADO.Net Entity Data Model and Using Entity Framework.
If the answer is the right solution, please click Accept Answer and kindly upvote it. If you have extra questions about this answer, please click Comment.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.