Posts by Marcelo Dias • 73 points
7 posts
-
-1
votes1
answer47
viewsQ: Reorder numerical sequence when changing array position
I have a list of financial categories My model public class Categoria { public Guid Id {get;set;} public string Nome {get;set;} public int Sequencia {get;set;} } And as you move them up and down you…
c#asked Marcelo Dias 73 -
-2
votes2
answers57
viewsQ: How to add AND parameters in EF query
My view sends 5 parameters bool Based on these parameters as I add where and in my query? My code is var query = db.Registros.AsQueryable(); if(model Paramter1) { query = query.Where(x => x.Kind…
-
5
votes2
answers127
viewsQ: How to use Groupby according to parameter?
I have my Model account as below: public class Conta { public int Id {get;set;} public int ClienteId {get;set;} public Cliente Cliente {get;set;} public int ContaBancariaId {get;set;} public…
-
0
votes1
answer45
viewsQ: Consult validity with two dates using Ef 6
I have the following model: public class Documento { public int Id {get;set;} public int ClienteId {get;set;} public int TipoDocumentoId {get;set;} public DateTime Emissao {get;set;} public DateTime…
-
0
votes1
answer44
viewsQ: Compare existence of record with date and future date
I have the following model public class AgendaExame { public int Id {get; set;} public int PacienteId {get; set;} public int ExameId {get; set;} public DateTime Data {get; set;} public DateTime…
-
1
votes2
answers215
viewsA: Is it possible to have Identityserver4 and Authorization authentication in the API separately?
I believe that the identity server should only have the necessary user, any other information that is just from the application you should add in the Claims once the token is validated. For this you…
-
0
votes0
answers101
viewsQ: How to create composite key and ensure the same property in 2 model
I have 3 model public class UnidadeNegocio { public int Id { get; set; } public string Nome { get; set; } } public class Cliente { public int Id { get; set; } public int UnidadeNegocioId { get; set;…