Questions tagged as 'c#'

2
answers

Inheritance with Entity Framework

I have a question on the inheritance part, I have the classes person and user. Person has its basic attributes and the user inherits from the person. So far so good, that's right. My problem is that in context mapping I'm passing the user, bu...
asked by 06.04.2017 / 03:57
2
answers

How to do a select by date in C #?

I want to do a select by the current date, type: list all the data that was registered in my table today, I did it this way and it does not result in anything, it does not generate errors or list any of the information registered. //Método List...
asked by 03.04.2017 / 13:29
2
answers

Convert String with AM / PM to DateTime

I have a variable that contains a date with AM / PM: string data = "01/08/2016 9:00 PM"; When I try to convert to DateTime using the TryParse method, the result ignores the designator "AM / PM". string data = "01/08/2016 9:0...
asked by 31.08.2016 / 22:07
1
answer

What do the following column / row measurements mean?

When creating WPF rows or columns, what does each of these measures mean? <Grid.ColumnDefinitions> <ColumnDefinition Width="50"/> <ColumnDefinition Width="50*"/> <ColumnDefinition Width="*"/> <ColumnDefinitio...
asked by 10.09.2016 / 04:05
3
answers

Check two or more occurrences of list element (lambda / linq)

I have the following list<t> listCard; inside it I have the following values: [0]:7720890002560 [1]:7720890002560 [2]:7777777002560 [3]:7720890002560 [4]:7720444402560 [5]:7720777002560 [6]:7728888802560 [7]:7727777702560...
asked by 06.04.2017 / 20:55
2
answers

How to receive the view model in a GET request WebAPI?

Well, I have here a problem with my API and would like to ask for your help. I have a form here in Knockout JS, I do serialize from a constructor which in turn returns me a querystring so    API = Page = 1 & MinPrice = 185 & MaxPrice = 694...
asked by 16.03.2016 / 13:21
2
answers

Session C # how does it work?

What is the lifetime of a Session in ASP.NET MVC, and how do I find out how much time is remaining and how to add more Session time (if at all possible)? Is there another form of value guarding that is more performative?     
asked by 02.03.2016 / 19:10
1
answer

Get total relationship items 1: N [closed]

I have two Product and Items tables - these tables have Parent / Child relationship respectively. I would like to know how do I get the total items from the Items table knowing that each customer can have more than one Order and that each order...
asked by 23.03.2016 / 03:55
1
answer

How to create a Merged "ResourceDictionaries"

I have a small example where I created an application-level resource: <Application x:Class="teste1.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xam...
asked by 02.04.2016 / 12:24
1
answer

Web API - Token

An MVC application makes access to the WEB API services. To access the WEB API, a token is mandatory. In the WEB API application there is a button that generates the token. How to make the WEB API accept only the token generated throug...
asked by 21.03.2016 / 21:53