Posts by Master JR • 1,853 points
173 posts
-
1
votes1
answer236
viewsQ: Problems with a Dependency Injection Container - Simple Injector
I am mounting my ID container using Simple Injector, but it is giving a compilation error (Underlined in red) in config. from the Ireadonlyrepository interface with the Clientedapperrepository…
-
0
votes0
answers103
viewsQ: Adapt Idbset EF6 to EF Core
I’m migrating from Entityframework 6x to Entityframework core, but I’m picking up a bit to implement an Idbset interface that doesn’t exist in EF Core. Instead of her, I need to use something like…
entity-frameworkasked Master JR 1,853 -
2
votes1
answer125
viewsQ: Effect on WPF window opening
I would like to create an effect on the opening of my WPF window, similar to the opening of Windows 10 Weather and Mail windows. When I open the window, Background gets a color and an image, then it…
-
2
votes1
answer196
viewsQ: Doubt about Visual Inheritance between Windows in WPF
I’m new to WPF and I’d like to clear up a question that I think most people have, but can’t quite clear up, which is the visual heritage of windows. Imagine that all my sign-up screens should look…
-
1
votes0
answers32
viewsQ: Create a button inside a Textbox - WPF/Mahapps
I need to create a button style that creates a button inside a Textbox. I am using WPF and a framework called Mahapps. But the problem is it’s getting that way: <Style TargetType="{x:Type…
-
0
votes1
answer4491
viewsQ: SQL Server - How to create a new table using a select from another table (Both in the same Database)
I made an sql script by joining some tables in SQL Server and will have the result in some fields, but I would like to create a new table and copy everything that Filtrei with select into it...…
sql-serverasked Master JR 1,853 -
1
votes1
answer72
viewsQ: How to Binding an element that was inherited from a User Control?
I set up a User Control that will be a screen model for me to implement other screens and avoid repetition of layout components. It contains a txbPsearch Textbox. <UserControl…
-
1
votes1
answer36
viewsQ: Use the value of a constant to set a property in the mapping with EF Core
I am mapping a class (System) in EF Core, but I would like to create constants for the size of the characters, because when I go to map the class, I would just change the value of the constant and…
-
0
votes1
answer221
viewsQ: How to create a Users access history from a Desktop app
I am creating a desktop application (Commercial System) using C#. I have a table of Users registration in which will be registered all employees who will log in to the system. In the registration…
-
3
votes2
answers167
viewsQ: Set an image
I’m trying to set an image, but I’m not getting it. WPF can’t seem to find the image path. Why this happens? <Image Width="60" Height="60" Stretch="Fill" Source="\Images\Tiles\clientes.png" />…
-
1
votes1
answer85
viewsQ: Mahapps - Changing the Style of a Tile with Binding in a class property - MVVM
I’m creating a dynamic menu using Tiles (Mahapps). I have two types of Tiles that I can use: Largetilestyle and Smalltilestyle. For this, I have a function that allows me to pass the name of Style…
-
2
votes1
answer112
viewsQ: Mahapps - How to create Menu User Button in the Application Title Bar
I have a button user in my title bar that will allow it to switch between users or exit the application. How do I create a menu that contains these two functionalities?…
-
1
votes1
answer261
viewsQ: Mahapps and WPF - How to apply "enhance" effect when I pass the Mouse over a Tile
I’m wearing a Framework called Mahapps in my project WPF and would like to apply a highlighting effect on Tile, when I passed the mouse over it. Someone knows how to do? <Page…
-
0
votes1
answer892
viewsQ: C# - Can’t map HERITAGE with Entity Framework Core - Code First?
I’m not able to map the Person and Client classes (Table Per Type (TPT) using the Entity Framework Core), Customer inherits from Person. How do I do? public class Pessoa { public int PessoaId { get;…
-
0
votes2
answers678
viewsQ: DDD C# - In which layer should I implement the Data export part
I am developing an application in C# and WPF, with several registrations as Customers, Suppliers, Products, etc. I am using the DDD concept and I have a question about how to implement a data export…
-
1
votes1
answer69
viewsQ: Mahapps - Change icons to a desired PNG format
I found a really cool web WPF project. It uses a framework called Mahapps. In the Hamburger menu there are some icons that use images from a package of Mahapps itself. I wonder if there is a…
-
0
votes0
answers177
viewsQ: EF Core - How to map a field from a table that relates to two fields from another table
I have a Person class (Personal Camp) that relates to the Personal class Accounting (Fields: Personal Accounting, Bookkeeping, Personal and Personal). Rationale: In the Person table the natural and…
-
4
votes1
answer1394
viewsQ: Many-To-Many Relationship Mapping - EF Core - C#
I’ve tried mapping a three-class relationship, but I’m getting it. I have a class Person who represents any Person, an Employee, a Customer, a Supplier, in short, any type of Person, be it physical…
-
1
votes1
answer306
viewsQ: How to enable Migrations using Entity Framework Core = Windows Forms C#
I am testing EF Core in a Windows Forms project following the DDD standard. In the repository layer I created my context and in my domain I already have the Models classes defined. How do I enable…
-
1
votes1
answer970
viewsQ: Doubt about how to implement a C# Dependency Injection using Ninject
I have a C# project with Windows Forms. I have a question about how to make an implementation between two layers of my application: Application and WindowsForms. I need to carry one DataGridView…
-
2
votes1
answer508
viewsQ: Pass lambda statement by parameter - C# - Entity
I have a method in which I need to pass only one select per parameter: public List<TEntity> GetAll(Expression<Func<TEntity, TEntity>> Select) { var query =…
-
2
votes3
answers682
viewsQ: How to mount a lambda expression and pass it by parameter to a Generic function?
I need to pass two parameters to a generic function that returns database data and select only a few specific columns to display in one DataGridView. public List<TEntity>…
-
0
votes1
answer88
viewsQ: Modify generic method to merge information into classes
I’m a first-time sailor with the Entityframework and I’m working with a class USUARIO who inherits from PESSOA. There are other classes like PESSOATIPO, PESSOAFISICA, PESSOAJURIDICA, etc., the…