Posts by Guilherme Caixeta • 87 points
10 posts
-
0
votes4
answers243
viewsA: Problems saving an already edited entity in the Entity framework core context
Usually whenever we search for an object in the database using Efcore it creates a trace ("tracking") of the object, so two options to solve this problem. It’s them: a) Remove object tracking by…
-
0
votes1
answer202
viewsA: Web API - Blocking server-specific calls
Then I managed to block the application in another way, through I.P. Through some researches I saw that this was the best solution to apply in the system, which is a Owin system. Solution: Follows…
-
0
votes1
answer202
viewsQ: Web API - Blocking server-specific calls
Well I have the following doubt, after implementing the CORS in an application, I saw that there is still a security breach that is, if an application(Postman, Curl) make direct calls on the server…
-
1
votes0
answers101
viewsQ: Function with Enum - TYPESCRIPT
Good need to put a function in an Enum in typescript as in the example below: export enum dataTableFunc{ 'edit'= teste() } function teste(event.button){ // } In this Function that I am trying to…
-
1
votes3
answers655
viewsA: Controller Base Dependency Injection
Just to complement the answer, after a few researches and gives reply of the above Manole I solved my problem as follows: When performing the Ifiltro instance I create it as protected and readonly,…
-
4
votes3
answers655
viewsQ: Controller Base Dependency Injection
Well I’m learning to work with the dependency injection now and I’d like to apply it to my project. But I came across the following difficulty, I have a controller base where it is inherited by…
-
0
votes1
answer71
viewsQ: Generating model from database - table with an attribute and Inheritance
In the project I am working I have the following doubts: First, I made some inheritance tables in the database where each has only one column id(which is pk and fk of the table to which they…
entity-framework-6asked Guilherme Caixeta 87 -
0
votes1
answer43
viewsQ: How to catch daughter entities from a data constraint?
Well my problem is this, I need to bring a bank entity and it contains several lists that should bring your data following a rule, the field data_exclusao must be void. All entities have the field…
-
0
votes1
answer121
viewsA: Passing a type created in Runtime for a statistical method
PROBLEM SOLVED I managed to solve my problem in a very simple way, after some extensive researches I saw that my problem was actually to pass a dynamic type generated in Runtime, to a static method.…
-
1
votes1
answer121
viewsQ: Passing a type created in Runtime for a statistical method
EDIT My problem is this. I need to generate a lambda expression that is of a type that I will only know at the time of execution, IE, the type to be used will be passed in the parameter classType of…