Questions tagged as 'c#'

0
answers

How to Set Properties of a File from Application?

From my application I create files perfectly ..., I would like to know if I can set a Default Text where I frame in the image, for example SudokuEnCasa File JLL (.jll)     
asked by 07.05.2017 / 16:55
1
answer

String from a Thread to a Label

I have Thread , which generates a "query" (this works in a form other than the main one) and I would like to send a variable of type string (that is generated by the query) to be displayed in a Label that is in the fir...
asked by 09.05.2017 / 03:57
0
answers

C # - UML - consultation and interpretation

I wanted to know if I made a correct interpretation of the following code when graphing the UML. class Sala { protected arraylist butacas; private int capacidad; public sala(int c) { butacas = new arraylist(); c...
asked by 31.05.2017 / 00:51
1
answer

Problem when using EF6 c # class error

Hi, I'm new to c # I'm trying to use EF6, but when I insert it, it gives me this error that I attached in the image namespace sng01 { using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System....
asked by 01.05.2017 / 19:15
1
answer

WebApi, I can not serialize declared attributes in a class derived from Exception

I can not get the values of the properties declared in BaseException when I call the Get method of the API. public class BaseException : Exception { public string ExType { get; set; } public JObject Properties { get; set; } publ...
asked by 29.05.2017 / 11:00
0
answers

Record related entities EF6 c #

I have a structure in the DB (sql server) in which I have a main entity (patient) and other related (medicines, clinical parameters, activities, etc) is a one-to-many relationship, understanding that it could become that For example, have zero o...
asked by 29.05.2017 / 02:20
1
answer

How to adjust different buttons on the grid of the Visual Studio screen?

Very good, I know that lately I ask many questions but every time I go inside more in Visual Studio, more questions and questions arise. Can someone tell me how I could do an auto-adjustment of different buttons or controllers rectangle with the...
asked by 29.05.2017 / 07:32
1
answer

Error saving EF ASP.NET image

Currently I have the following structure in my model for an image field of my bd [Table("especialidad")] public class clsEspecialidad { private int iId_Especialidad; [Key] [Column("id_especialidad")] [Display(Name = "Id Espe...
asked by 11.05.2017 / 19:18
0
answers

Problem with Visual Studio C # project (MainWindow does something it should not)

My code is as follows and for some reason when the MainWindows does "InitializeComponent ();" Apart from the main window another "Kitchen" window opens which should not happen. public partial class MainWindow: Window     { private static...
asked by 29.04.2017 / 13:59
1
answer

Error list in gridview with foreach [duplicate]

I wanted to know how I can display the data in a gridview, I know that I have to return the list but I can not find how, it should be easy but I'm just starting with c # DataTable SBTable = new DataTable(); OleDbCo...
asked by 04.05.2017 / 14:08