I initially had a DbContext with all DbSets of my entities. However, I needed to create a DbContext<T> that has a generic DbSet for methods that are properly generic. It turns out that the two DbContext point to...
I have the following model :
public class Crm_Analise
{
[Key]
public int id { get; set; }
public string cod_item_CRM { get; set; }
public string TAG { get; set; }
public string data_creat { get; set; }
public str...
I'm at the beginning of project development. This project will have a large database. Is it advisable to keep lazy load enabled? I'm worried about losing performance.
I needed to implement some functionality in the users model but as you can see right at the beginning this class is automatically generated by Entity, so whenever I update or recreate the model the custom functionality will be lost.
Ex...
I have two classes:
public class Cliente
{
public int Id {get;set;
public string Nome { get; set; }
public string Email { get; set; }
public string Telefone { get; set; }
public string Celular { get; set; }...
I have a field of type DateTime? (null allowed) that is in the complete date / time format (dd / mm / yyyy hh: mm: ss).
I need to display the date and time in separate columns in a datagridview. I tried to use DbFunctions.TruncateTi...
I'm having trouble in ordering a query where I have to sort the children by the ID, Follow Source.
public Grid GetByOrderGridData(long id)
{
var query = from c in context.Set<Grid>()
where c.Id == id
o...
I'm very new to WPF I'm doing a project using MVVM and Entity Framework and it was suggested not having any Click tails event for a button in the code behind a window, for what reason? What is the alternative to replace the below event without b...