Questions tagged as 'c#'

1
answer

ASP.NET MVC and DDD

I'm trying to use DDD and Fluent Api in a test application. I had the following question: I have a product registration (in this case ink), when adding a new product I put dropdownlist's, to force the correct and standardized registration, ex...
asked by 20.08.2015 / 18:40
2
answers

AutoMapper.AutoMapperMappingException: Missing type mapping or unsupported mapping

I'm using the AutoMapper library to map my ViewModels. I have my DBdomain class: public class DBDominio { [Key] [Column("ID")] public long id { get; set; } [Required] [StringLength(128)]...
asked by 15.10.2015 / 18:07
2
answers

Sort by join field with linq in MySql (C #, MVC)

I have the following query: query = from p in db.pessoa join f in db.pessoa_origem on p.Pessoa_Origem_Id equals f.Id join s in db.pessoa_status on p.Pessoa_Status_Id equals s.Id join c in db.contato on p.Id equals c.Pes...
asked by 24.07.2015 / 22:54
1
answer

UserControl x Form - Cancel screen event after UC validation

I have a UserControl, which does a validation on the Validated event, and on the screen, I have the Confirm button. When I use the ALT + C shortcut to run the button event, it will perform validated event validation, and then the button event...
asked by 21.07.2015 / 22:35
2
answers

Query in an XML file - C #

I have an application on windows phone 8.1 where an XML file is displayed in a listBox , and in that application it has a textbox for the user to search for content that is displayed by% with%. My question is: how do I make thi...
asked by 19.07.2015 / 09:21
2
answers

Inserting the data into the database in C #

My class Cliente : using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Objetos_de_Transferencia { public class Cliente { public int id_cli { get;...
asked by 01.07.2015 / 19:00
1
answer

Spinner - Xamarin

I need to create a spinner by programming code and define: layout_height: match_parent layout_weight: 10 layout_width: wrap_content Spinner sp = new Spinner (this);    sp.Layout_height ???     
asked by 28.10.2015 / 19:32
1
answer

See table by foreign key in C #

So, I have a Pizzaria project and I have some tables, such as: Customer Registration, Employee Registration, Order Master and etc. I've already created a Client and Employees table and that's OK. In the Order Master table there are two fields th...
asked by 04.10.2015 / 23:39
1
answer

Pagination in the modal using Url.Action

I have a modal of products, in the controller of the page has a get function to complete it when it opens, and a post for filters and pagination. My problem that pagination is done by Url.Action("Index", new { page }) that calls the pag...
asked by 05.10.2015 / 21:53
2
answers

Create project file like .psd, .sln, own, etc [closed]

I would like to know how to create these types of files, sln, psd, project files, psd from photoshop, sln from visual studio, I want to create my own project type, I tried searching Google, but I did not know as and I did not get results of my i...
asked by 10.10.2015 / 00:04