Questions tagged as 'c#'

2
answers

How to find a reserved word in a sentence?

I'm creating a routine to search for reserved words in a text (people's names). I have already tested with Contains() and IndexOf() . It works well most of the time. However in some words the return does not satisfy. Example: CORAL...
asked by 01.11.2017 / 17:50
1
answer

Dependency injection in .NET Core

I am migrating a WebAPI project with .NET Framework 4.6 for .NET Core. In my project I use Unity to do Dependency Injection: var container = new UnityContainer(); DependencyResolver = new UnityDependencyResolver(container); container.Regist...
asked by 03.11.2017 / 22:09
2
answers

References daughters and service pattern

A heavily used pattern in DDD , is service pattern . My question is, where is the logic for references to "daughters"? For example, a use case, Pedido that has Produtos public class Pedido { public int Id {ge...
asked by 09.10.2015 / 01:07
5
answers

Console Application without displaying console window

I have a Console Application in which I use to run routines of my system. I'm running this console from the Task Scheduler, every time it runs, it blinks on the screen. Opens, executes the process, and closes. I do not want the console to appear...
asked by 13.11.2015 / 19:42
1
answer

Is there a way to name the selected tables in a stored procedure to identify them in the DataSet?

I have a Store Procedure in SQL Server that projects multiple data. Example: CREATE PROCEDURE [dbo].[teste_sp] AS BEGIN select * from compra select * from cliente select * from fatura END However, when retrieving the DataSet in...
asked by 18.12.2015 / 18:02
1
answer

Access webcam to take photo

How can I access the webcam to take some photos and upload directly to my server? Is there any API that will help me?     
asked by 26.06.2015 / 21:42
1
answer

Differentiate class instance from "instance" interface

Is there any way to differentiate% w / o% w / o% w / o in the code below,% w / o% or another method? var v1 = new MinhaClasse(); IMinhaClasse v2 = new MinhaClasse(); I want to execute a method only if the v1 is "instantiated" from...
asked by 25.06.2015 / 04:16
1
answer

C # App.config - Change DB address at installation time

I have a C # desktop application that when installed on a pc, should access a Mysql DB that is on another machine. The DB server address is configured in the App.config file. At the client's request, at the time of installation I need to...
asked by 31.07.2015 / 20:13
1
answer

Date formatting works in Chrome and does not work in Internet Explorer, or vice versa, with MVC C #

If I use it in the template [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:dd'/'MM'/'yyyy}")] public DateTime data { get; set; } It works fine in IE but does not work in Chrome . When I open the edit form, instead...
asked by 18.05.2015 / 17:10
1
answer

Call ASP.NET application via HTML page

I have an application that I can not change the source code that generates purchase orders. For each request an html with the request data is stored. I want to implement this html with the following: When opening the html, embed a simple page in...
asked by 18.06.2015 / 16:51