Posts by Leonardo Lima • 207 points
10 posts
-
0
votes1
answer406
viewsA: One-to-Many EF Core
I had to do the relationship manually in my Context protected override void OnModelCreating(ModelBuilder moodelbuilder) { moodelbuilder.Entity<Topic>().HasOne(x => x.CreatedBy);…
-
-1
votes1
answer406
viewsQ: One-to-Many EF Core
I have 2 classes, Topic and Users. Basically a user can have several topics but the topic can only have one user (creator). When trying to create a Migration, the following error occurred: Unable to…
-
2
votes1
answer111
viewsQ: Sum total value of each LINQ category
I have a Shopping List(Shoppingitems) like this: Descricao: Padaria Campobelo Valor: -24.00 Data: 06-03-2019 Categoria: Alimentacao Descricao: Uber tecnologia Valor: -24.00 Data: 07-03-2019…
-
1
votes0
answers70
viewsQ: Cast for LINQ decimal?
Since there is no Convert.ToDecimal() in language SQL, how could I transcribe a as decimal(18,2) in LINQ? I tried through the decimal.Round() but it’s not working. I have the following query on SQL:…
-
1
votes1
answer88
viewsQ: Is it possible to create a column in LINQ?
I am trying to turn the following query into LINQ SELECT [nu_ano] ,[nu_mes] ,[id_projeto] ,[id_fase] ,'Financial Progress ("Competência")' as ds_categoria ,'Baseline' as ds_curva FROM…
-
2
votes1
answer109
viewsQ: Read and display a PDF inside a zipped folder without extracting it
Is it possible to do this or do I really have to extract the file before to later read it? In my code I’m doing so: string zipPath = @"C:\Users\Analistas\Desktop\ZipFile.zip"; using (ZipArchive…
-
0
votes1
answer165
viewsA: Compress Access Database with C#
In Visual Studio go to project properties, in the Build tab select the Platform target option =X86. Source: Retrieving the COM class Factory for Component with CLSID {XXXX} failed due to the…
-
1
votes1
answer60
viewsA: Search result Nhibernate C#
I think what you want to do is about that: RepositorioArquivo rep = new RepositorioArquivo() IList<Arquivo> lista = rep .ConsultaSemLayout(); ComboBox.DataSource = lista ;…
-
0
votes0
answers181
viewsQ: How to see the open processes within Visual Studio?
Is it possible to know which processes are opened inside Visual Studio through some hotkey? I am debugging and the error message is that the file is opened in another process, I checked if it was…
c#asked Leonardo Lima 207 -
0
votes1
answer2081
viewsQ: How can I place a logo on the same line as a flexbox navbar?
Hello, I have this situation: .navigation{ margin: 0; display: flex; background-color: #6ab240; height: 64px; justify-content: center; align-items: center; } .navigation a { font-family: 'Roboto',…