I have a Desktop application in C # and need to load a dropdown with an "All" option and the rest coming from a database table. To load the dropdownlist I did something like this:
cmbOpcoes.Items.Add(new { Id = 0, Name = "Todos" });...
I need to get a Generic Object List parameter and manipulate it, although I do not understand how to do it.
Example:
public class Funcionario
{
public long Id {get; set;}
public string Nome {get; set;}
public DateTime DataCont...
I am creating a zipped file and need to save it to my user, but when I save the location wherever the file is saved it saves on the server where the site is hosted.
Path
string zip = @"C:\file.zip";
Moving on to be saved ...
using (var...
I'm trying to leave only one column of GridView as ReadOnly , I'm doing so:
if (id_crm == 0)
{
textBox2.Text = Convert.ToString(cod_crm());
DataTable dat_itens = new DataTable();...
I'm using Entity Framework (version 4.4) in an AspNet MVC project with .NET Framework strong> SQL Server .
I do not have access to the server where the application is hosted, and from time to time it undergoes some migrations to other se...
I'm starting to develop in ASP.NET and I always have a little problem.
When I need to generate a context (that class that will reference with the bank), example below:
I do the following: Botão direito em cima do projeto -> Add...
I have an Asp.Net MVC project with Entity Framework 5.0 in .Net Framework 4.0.
What are the losses brought by a very long TransactionScope ?
I have the following code snippet:
using(TransactionScope scope = new TransactionScope())...
I found a function in MSDN that I need to use for a program I'm doing.
My problem is that when I try to use it it appears as if it did not exist in C # , reminding me that I already added using System.IO; to the top of my program. Do...
Good morning,
I have already asked a similar question, I am trying to complement this view with more information and starting with the most basic.
I have the following structure:
public class Artista
{
public Artista()...