Questions tagged as 'c#'

1
answer

Change Windows Forms window style

How do I change the style of my window to a RibbonForm. Being that in matter of colors already is tranquil. See the image: And now how do I use the CreateParams method to change the title and center it and create a glow effect on a...
asked by 27.06.2014 / 18:34
2
answers

Using the PIVOT operator without aggregation

I have the FAULTS table with the following columns: CREATE TABLE [dbo].[FALTAS]( [Id] [int] IDENTITY(1,1) NOT NULL, [Matricula] [int] NOT NULL, [Dia] [date] NOT NULL, [Situacao] [varchar](50) NOT NULL, CONSTRAINT [PK_FALTAS] PRIMARY KEY CLUSTE...
asked by 21.06.2014 / 19:19
1
answer

Getting information from a div in C #

Well, I have a code that reads the page however I need the following: <a href="/t848p15-teste">2</a> The idea of the code is to look for a <a> tag that has this 2 and return the link. In case, it would return...
asked by 18.07.2016 / 22:35
1
answer

Problem Returning Items in a Relationship in the Entity Framework

Speak Personal All right!? I'm going through the following problem in the entity framework that I think is some error I'm having at the time of relating two classes: I have a class called: RequestPathPathIndexPath that is related to a clas...
asked by 04.08.2016 / 02:54
2
answers

EntityFramework .AsEnumerable () or .ToList ()?

In one of the projects I got I saw the following code, which implements a data-listing method of a given entity, but this listing is read-only: /// <summary> /// Listar todas entidades /// </summary> /// <returns></returns...
asked by 03.08.2016 / 20:23
2
answers

Problem creating relationship with user class (IdentityUser) using IdentityFramework

When I create any relationship with my user class: namespace Modelo.Cadastro { public class Usuario : IdentityUser { [StringLength(250, ErrorMessage = "O nome de usuário deve conter no mínimo 3 caracteres", MinimumLength = 3)]...
asked by 25.07.2016 / 20:30
5
answers

How to create composite key with Entity Framework 6

I have my base model that all classes inherit from it: public class Base { public int Id {get;set;} public int ClienteId {get;set;} } And an example model: public class Grupo: Base { public string Nome {get;set;} } And a subg...
asked by 12.02.2015 / 13:50
1
answer

Deviating from an obstacle without NavMeshAgent

I need to create an obstacle bypass script but I can not use NavMeshAgent to do this because this project relies on implementations where NavMeshAgent does not work. Notice that in the image below there are two cubes and one obstacle, the...
asked by 07.04.2016 / 19:14
1
answer

Where to implement Facade in MVC?

I'm developing a C # project using MVC, but the teacher wants all student projects to have Facade, the question is this! Where do I implement the Facade, Model, View, or Controller?     
asked by 19.04.2016 / 14:15
1
answer

Primary Key without Self-Increment for CPF in Entity Framework

The scenario is as follows: I have an Employee class. The primary key of it should be the employee's CPF that the user types. The problem: key follows a default auto increment, not going according to the entered CPF.    EX: I...
asked by 31.03.2016 / 01:41