Posts by Felipe Fontes • 45 points
2 posts
-
3
votes1
answer50
viewsQ: Return text sql to model in the Entity framework
I have the parent class and the state class: [Table("tb_pais")] public class PaisModel { [Key] [Column("id")] public int Id { get; set; } [Column("nome")] [Required(ErrorMessage = "O campo nome é…
-
-1
votes1
answer196
viewsQ: Create tree structure from a database query
I have a database query that results in the following table: How to turn this query into a tree structure like the one below in c#? tree = [{ text = cliente1, items = {[ text = cojunto1, items =[{…