When defining the context class in the Entity Framework (example):
public class Context : DbContext
{
public DbSet<Usuario> Usuarios { get; set; }
public DbSet<Categoria> Categorias { get; set; }
}
And used in DAO classe...
I'm trying to remove the use of SQL statements from within the system (to make it flexible on the database that will be used), I use statements Insert , Update and Delete via stored procedure (for performance and for flexibi...
I have an application that will be running 24h / day the 7days / week, that is, it will always be running.
I need at a specific time, every day a method of this application is called.
I need to know how to populate a DropDownList from another DropDownList. Example: I have a DropDownList named Project that takes the information from my DB. When I select for example "Project 1" I need in my second DropDownList to load all Sub P...
I can do this:
var filial = (from f in base.EntityContext.vw_filial
select f).ToList<vw_filial>();
But, I want to do something like this:
var filial = (from f in base.EntityContext.vw_filial
select new
{...
My system does N jobs over a list of files, eventually I get this exception:
System.IO.IOException: Process can not access file
'C: \ XXXXXX \ xxxx.xxx' because it is being used by another process.
The code that throws the exception...
Studying C #, I came across a situation, I want to get a value ( string ) from the console. And then compares it with the value of an enum . For example:
[Serializable]
public enum Command
{
Exit = "/exit",
SendMessage...
I have the following account:
var NumeroDePaginas = NumeroDeItens / 32;
When I use Math.Round it rounds both up and down. But whenever there is any decimal value I want to return an integer value rounded up.
Example: If NumeroD...
public string site = "http://www.tibia.com/community/?subtopic=worlds&world=Aurera";
private Regex nomedochar = new Regex("subtopic=characters&name=(?<player>.*?)\" >");
public string nomedochar2 = "";
public Thre...