Posts by João Borba • 13 points
4 posts
-
0
votes0
answers10
viewsQ: EF CORE 3-field relationship with an entity
Good morning! I am new to using EF Core so it may be that my question is simple to answer. I’ll tell you about the way my bank is. I have a process table, in it has 3 fields (Cia Aerea, Cia…
entity-framework-coreasked João Borba 13 -
0
votes2
answers359
viewsA: Generic Method of a Generic Class C# for similar classes
As I did: In my class CRUD (Generic) I left so: public class Crud { public void Gravar(T obj) { context.Set<T>().Add(obj); context.SaveChanges(); } private readonly ModelConexao context;…
-
0
votes2
answers359
viewsQ: Generic Method of a Generic Class C# for similar classes
I have some classes that will use a record method. I created a CRUD (Generic) class where would have a method to write, but I need this method to receive as parameter the classes. There is some way…
-
1
votes1
answer374
viewsQ: Doubt to enter record with foreign key. ENTITY FRAMEWORK
I’m a beginner (starting bemmmm) in programming, and I have a case to develop, which would be a Crud, using Asp.net (C#) and Entity Framework. I created a simple contact registration form, where…