Questions tagged as 'c#'

1
answer

Is it possible to interpolate a string already declared in C #? [duplicate]

The question What does the "$" symbol mean before a string? , explains that it is possible to do interpolation of strings in C # through $ (dollar sign). But I noticed that in all cases where it is used, the syntax works for directl...
asked by 27.07.2018 / 18:43
1
answer

Where to connect to the database?

In the MVVM standard where should I connect to the database, in the View, Model, or ViewModel?     
asked by 20.05.2015 / 18:07
1
answer

Validate custom fields of generated classes

To prevent validations made with Data Annotations are lost if the table structure changes, it is necessary to create another class with the fields for validation and a class partial , path that this last class references the class genera...
asked by 19.05.2015 / 19:49
1
answer

How to convert a view to string in the controller?

I would like to convert this view to string and have the value in string in my controller The problem is that I would like it to execute an excerpt of script that is in this view The current method...
asked by 21.05.2015 / 01:28
1
answer

I have a local DB in C # sql. When I went to install on the client gave the following error

Can anyone help me? I installed my project on the client with local database, I took the bd together and such, but gave this error:     
asked by 18.05.2015 / 22:01
1
answer

Migration Conventions

I have an MVC application in DDD that uses SQLServer. I'm looking to take the database to PostGresSQL, but an FK duplicity error occurs. For example, in the SqlServer pattern would be generated: FK_dbo.Adicao_dbo.OrgaoEmissorAtoLegal_ExT...
asked by 05.10.2018 / 21:19
1
answer

Structure of a WebService X Model class

I need to do a web service (asmx) where the Request Entry is in this structure: Request XML <RetrieveDeviceParentRequest> <model query=""> <keys query=""> <ConfigurationItem type="S...
asked by 04.10.2018 / 15:30
2
answers

Save data from a Row to an array

I am designing a new feature for a Winforms project in C # . Soon I developed the following method that returns whether in the GridControl (gvDados) component there is a selected row or not. public bool RetornaSelecionado(bool Seleci...
asked by 25.09.2018 / 19:01
1
answer

Align Popup to Center

Why can not I align to the center, this my popup? LookhowitlooksinXAMLDesign Follow my XAML : <Popup x:Name="popup" HorizontalAlignment="Center" VerticalAlignment="Center"> <StackPanel Background="Black" Width="456">...
asked by 30.04.2014 / 20:08
1
answer

Edit data for a combo box

I'm having a problem with my application in ASP.NET MVC. What's happening is that when it comes to saving data, my combo boxes load data from enums. These combo boxes are from an application to a school, where the series / year, the class and th...
asked by 01.05.2014 / 19:51