Posts by Bruno Silva • 400 points
34 posts
-
1
votes0
answers32
viewsQ: Developing an application with webservice how to approach
I’m conducting a project that consists of an online platform for managing a clinic, where it should contain a website and an application. My main idea is to create a Webservice to meet both platform…
-
0
votes2
answers1885
viewsQ: Adding Buttons in the upper right corner of the div
I am using bootstrap, HTML and CSS in a responsive layout and wanted to add two Buttons in the upper right corner of the DIV How can I do that? Regardless of what’s inside the div? for example…
-
0
votes2
answers2837
viewsQ: Click anywhere in the <li> and run href from <a>
It is possible to visualize that the <a>is clickable ie, I click on it and it redirects me to another location for example, but I would like to know how I do so that it is possible to click…
-
1
votes3
answers119
viewsA: Object is not persisted when using Entity Framework
The local project database is in the same project folder, always when I run the project it plays the database to bin/debug creating a new database. what should be done to solve the problem is to go…
-
0
votes0
answers331
viewsQ: Recover Data to Controller in Laravel
I am developing a web application with Laravel and on one of my screens I have a Customer and Contact relationship, where a client can have multiple contacts. So in my View I have a method to add my…
-
1
votes0
answers155
viewsQ: Saving a Lot to Many Relationship with Entity Framework
Doubts when inserting objects into the database when using Entity Framework 6 + C# WPF. I have 3 objects Ordemservico, Service and the Itensos. with the following structure: public partial class…
-
-2
votes3
answers119
viewsQ: Object is not persisted when using Entity Framework
I’m using the Entity Framework 6 and the Sqlserver. I have an object called category, where I want to persist it in the bank. and when I run this function, it persists the object correctly because I…
-
0
votes0
answers56
viewsQ: Failed to open file after application installation in C# WPF
I’m creating a C# installer using visual studio 2017 installer project in this project there is a user manual it is contained in the root of the project, when I run it either in Debug or Release…
-
0
votes1
answer340
viewsQ: Restore Postgresql Database in C#
I created a . bat to restore a database in Postgresql and it worked perfectly using the following command: set PGPASSWORD=postgres123 C:\Progra~1\PostgreSQL\9.4\bin\pg_restore.exe -i -h localhost -p…
postgresqlasked Bruno Silva 400 -
1
votes3
answers6281
viewsQ: File . bat to generate backup and Restore in Postgresql
I am creating . bat files to backup and restore a database in Postgresql using windows 10 and pg 9.4 I perform the following command to perform the backup set PGUSER=postgres set…
-
0
votes0
answers76
viewsQ: Problems changing line color of a Datagrid in C# Wpf
I am having problems changing the color of the Datagrid lines, I use the following function int i = 0; private void gvDados_LoadingRow(object sender, DataGridRowEventArgs e) { DataGridRow rowContext…
-
0
votes1
answer374
viewsA: Exceeded timeout trying to send email c# windows Forms
The problem may be related to the configuration of your Smtpclient, you may need to define the sending mode and port for SSL. I use the following method for sending e-mail string _sender; string…
-
4
votes1
answer456
viewsQ: Problems restoring a Postgresql database with C#
private void btnRestore_Click(object sender, EventArgs e) { if (clsB.ConectaBanco()) { //Executo a seguinte função para limpar a base de dados, para poder dar o restore. clsB.ExecutarSQL("drop…
-
0
votes3
answers535
viewsA: Finding pg_dump and pg_restore (Postgresql) on my C#PC
I found a method, which is possible to find pg_dump or other programs, without the need for user upgrade private void VerificaPg() { CaminhoPg = BuscarArquivo_Dump("pg_dump.exe"); if (CaminhoPg ==…
-
0
votes1
answer505
viewsQ: Problem Inserting Bytea in postgresql
I did this update to update a column in my company table, my column in the database is like bytea and I’m saving an image as byte[] ... in my company class, I have the variable Photo that is of the…
-
0
votes1
answer614
viewsQ: Save image in database and give Restore in database with Postgresql
What is the best way to save image in Postgresql database? Currently I have an OID to save, I can use normally, both to save and to recover, but when I give Restore in my database, the following…
-
2
votes3
answers535
viewsQ: Finding pg_dump and pg_restore (Postgresql) on my C#PC
To perform the backup and Restore in a Postgresql database using C# you need to locate some files like the pg_dump and pg_restore. How do I make a function so that it is possible to find the files?…
-
0
votes1
answer212
viewsA: Foreach returning only one object in the list
Try changing the While from List All by creating a new Object instance at each result call while(rs.next()) produtos.add( new Produto (rs.getInt("id_produto"), rs.getString("ds_tipo_produto")) );…
-
0
votes0
answers156
viewsQ: Assembling report with Reportviewer in C#
I have two tables in the database that are Purchase and Purchase Items. How is it possible to make a report using Reportviewer . rdlc that stays with the following pattern: Dados da Compra Dados…
-
0
votes1
answer284
viewsQ: Running audio in php
How is it possible to upload an audio tag with the file outside of my server <audio controls> <source src="../../spool/teste.mp3" type="audio/mp3"> </audio> On the same level as my…
-
1
votes1
answer928
viewsQ: Backup and Restore using Postgresql in C#
To back up or re-store a database through a C# application using the Postgresql DBMS, you need to send a command to pg_dump. It is possible to execute it via a select by sending an Executenonquery…
-
1
votes1
answer398
viewsQ: How to cancel the execution of a function in C#
I am developing a C# WPF desktop application in which there is a function responsible for sending email EnviarEmail(), when this function is executed it takes a certain period of time for it to be…
-
-1
votes1
answer547
viewsQ: Emailing a C#application
It is possible to send an email directly from the application C# without having to use a server? If yes, how to do this? For example, in case the user forgets the password and I want to send a new…
-
0
votes2
answers416
viewsA: Active Process when I close the C# WPF program
One found way I could accomplish this was instead of calling the current way to switch the call using the App.Current, follow the example: App.Current.MainWindow = new MenuADM();…
c#answered Bruno Silva 400 -
0
votes2
answers416
viewsQ: Active Process when I close the C# WPF program
I have an application in C# it works normally, but when I click the button to close, it closes but it does not stop ... I think it is in some kind of background, ie your process remains active! and…
c#asked Bruno Silva 400 -
2
votes2
answers239
viewsQ: Changing Cell Color according to IF condition in C# WPF source code
I have a Datagrid in a form in C# WPF, as it is possible to execute a method recovers each Cell contained in that Datagrid and assign a possible value, or change the background color? For example I…
-
1
votes1
answer666
viewsQ: Alter color of the Datagrid cell
I have a Datagrid in C# WPF, and I need to change the color of some cells according to one condition. For example I have the Stock column and if the Stock is less than a specific value I put its…
-
1
votes2
answers985
viewsA: Problem while recovering null data to a Datatable in C#
The problem is the used version of npgsql, version 3.2 requires that the data is not null or empty, well I do not know why this occurs, but when returning to an earlier version of npgsql I was able…
-
3
votes2
answers985
viewsQ: Problem while recovering null data to a Datatable in C#
I am working with C# and the Postgresql Database, I have a field of type Date where it can be filled dd/mm/yyyy or null empty. the same problem refers to any field of the table, if it is empty, even…
-
6
votes7
answers19300
viewsQ: Increasing modal size using bootstrap and html
I have a certain modal responsible for displaying some content of the site, however the content can not be adjusted to the modal screen, it always gets the same width regardless of the content ...…
-
0
votes0
answers156
viewsQ: Error using.js numeral in Asp.Net MVC application
I am trying to convert the table data to the correct monetary value, and I am using the numeral.js, I have the following script @section scripts{ <script…
-
1
votes2
answers649
viewsA: Problem with connection between EF and Postgresql
I also managed to solve this problem through the following link http://duanbrito.net/2016/06/07/postgresql-npgsql-entityframework-6-com-net-framework-4-5/…
-
3
votes2
answers649
viewsQ: Problem with connection between EF and Postgresql
I am trying to make a connection with EF and Postgresql in an Asp.Net Mvc application I am using the following references Entityframework6.Npgsql Npgsql 3.1 .NET Framework 4.5 I have the following…
-
1
votes0
answers256
viewsQ: How to use Postgresql with Entity Framework?
I have a system that I am developing in C# WPF using Postgresql as DBMS and wanted to use this same database for my application in ASP.NET MVC. You can make the Entity Framework have access to the…