Questions tagged as 'c#'

2
answers

What are the differences between background and foreground threads?

What are the differences between these two types of threads and foreground ?     
asked by 17.09.2014 / 21:36
2
answers

Get user-created methods

I have a method that lists the methods that a given object has, I want to take only the methods created by the user, in this case: Add and Subtract What this method returns me: GenericClasspublicclassGenerico{publicobjectObjeto{get;set;}pu...
asked by 07.05.2014 / 22:43
1
answer

Is there a C # error suppression mechanism similar to that of PHP arroba?

I'm studying C #, however I'm used to programming in PHP. I know that in PHP it is possible to suppress some error messages by putting @ (at) at the beginning of the expression. For example, if I wanted the variable $a not to...
asked by 07.06.2016 / 14:19
1
answer

Do I need to use try / catch throughout a process chain?

Assuming I have a call on my controller layer for a method in the business layer that leads to another method in the data access layer. Should I use try/catch in all of them, just in some or depends? Below, as an example, I'm usin...
asked by 16.05.2016 / 17:06
1
answer

How to compile the database to install together with a C # application?

I'm developing a C # application, and I need to know if I can build the database to install with the application, I've already seen something here about SQLite, but I do not know the tool and I do not know if it stores images, my case will have...
asked by 18.12.2015 / 06:25
2
answers

How to correctly use Regular Expression

I'm studying about RegularExpression , but I'm not getting it right. In my Model the property CPF must be filled only by numbers: [RegularExpression(@"[0-9]", ErrorMessage = "CPF deve conter apenas números")] public string...
asked by 25.11.2015 / 16:59
2
answers

What is the connection string "connectionString"?

What is the connection string anyway? In a connection string which represents data-source ? And the provider name ?     
asked by 22.04.2016 / 20:02
4
answers

Mounting run-time updates

When mounting SELECTS at runtime we always have the problem of knowing what might be coming or not depending on the choices made by the user. When assembling the WHERE clause we are faced with the question of adding AND o...
asked by 27.05.2016 / 19:46
1
answer

What is a wrapper class?

What is a wrapper class? How can they be useful? Cite examples of usage at php or
asked by 03.02.2014 / 16:58
2
answers

Lazy Loading EF Core, load daughter entities and subfiles?

I have a Web Api that I am developing using DotNet Core and EF Cor but it has Lazy Loading active, but in some cases I need to load daughters entities and daughters of daughters , I created a generic repository to...
asked by 27.02.2018 / 14:13