Questions tagged as '.net'

1
answer

What is and what is the service fabric

From my point of view, Microsoft has done a great job of running several platforms lately. It all started when they released the .Net platform code. It seems like once again they are investing in various platforms, this time in the cloud! The...
asked by 22.10.2016 / 10:49
1
answer

Preventing duplicate data

I want to prevent the registration of a person whose CPF has already been registered. I tried to do something but it was an error because I defined the CPF field as constraint . Instead of giving the error I would like to be shown a message adv...
asked by 19.07.2016 / 22:17
1
answer

Error while trying to set the MissingSchemaAction property of NpgsqlDataAdapter [closed]

I'm trying to set the MissingSchemaAction property of a NpgsqlDataAdapter object, but Visual Studio is complaining that the property does not exist. I looked at the github project and saw that NpgsqlDataAdapter inherits...
asked by 03.06.2016 / 00:32
2
answers

How to convert a DataSet to Int32?

I'm having a problem converting an information that is coming from my database to a variable of type Int32 . When I do the select max(cur_id) from tbl_curriculo; I send the id information straight to a Dataset which I call...
asked by 18.06.2016 / 07:07
2
answers

Get elapsed time of a string

I wanted to calculate the time now with what I get from a string like this: 2016-04-16T15:55:53Z But the time is three hours higher than our spindle, I wanted some output like: Já se decorreu 0 horas, 0 minutos e 0 segundos...     
asked by 16.04.2016 / 20:09
1
answer

How to create a method that takes only one string parameter and returns a generic type? .NET MVC

How could I create a method that does not need to receive a type as a parameter, only a string , but would return a type? As for example: public static T Guard(string guard_name) where T : class, IAuth { return (T)Activator.Create...
asked by 30.06.2016 / 15:19
2
answers

Sort Code does not return correct value

I have a class work whose need is to use a sort algorithm to sort a list of random numbers. My problem is that I'm throwing the items from the list of random numbers into an array, implementing the computer method and putting the ordered numb...
asked by 04.07.2016 / 14:49
2
answers

Attribute Type for PostgreSQL oid column with EF6

What kind of attribute should I use to represent a column type oid of PostgreSQL with Entity Framework 6 Code-First? Remembering that PostgreSQL's oid type is for storing files.     
asked by 24.05.2016 / 16:27
1
answer

Generate Class from XSD - CTE for Webservice SEFAZ

Regarding the generation of NFE and CTE classes from the XSD for use in SEFAZ Webservices. I have had some ambiguity problems in the name of the generated classes. I used the Visual Studio Tools tool to generate the class from the XSD. How...
asked by 18.02.2016 / 16:29
1
answer

How to disable editing and block the addition of GridView rows

I have GridView that the user enters with some information and saves, I would like after saving click. put all grid in ReadOnly mode and would like to block to insert or delete lines. I'm using the'GridControl 'from DevExpress 1...
asked by 05.09.2016 / 00:29