Questions tagged as 'c#'

3
answers

Send All CheckBox via Post

I'm trying to send all the CheckBox from my View, however, I can only send the ones that are selected via FormCollection Controller public ActionResult Index() { List<ListaCheckBox> listacheck = new List<ListaCheckBox>();...
asked by 29.04.2016 / 17:47
1
answer

Slowness with FluentNHibernate

I'm using FluentNHibernate in a simple product registration application. The first time I run something that accesses the database (product query screen or a product registration), the site will load for a long time. But after this first load...
asked by 10.05.2016 / 18:36
0
answers

Query using Firebird's SUBSTR with linq, queryOver, Criteria

Well, I need to create a query using the firebird "SUBSTR" function with linq, queryOver, or Criteria. I have option to create with HQL or SQL, but these would be my last options. Does anyone have an idea? Here is an example of the query. S...
asked by 10.05.2016 / 19:33
0
answers

Identify instances of skype using library SKYPE4COM.dll

I'm working on a C# WindowsForms project and using the SKYPE4COM.dll library. I made an application that looks for a skype instance running, the problem is that when assigning the instance as code below it takes the first one...
asked by 20.04.2016 / 20:39
0
answers

Show results of a Stored Procedure

I want to show the result of the procedure in a List I added in the model and generated this code. public virtual ObjectResult<string> SP_ListaDadosCarteiraPGC(Nullable<int> ano, Nullable<int> mes, string codex, string ada...
asked by 20.04.2016 / 20:41
1
answer

Save the information of a contact in android xamarin

void button_Click(object sender, EventArgs e) { //Create a new intent for choosing a contact var contactPickerIntent = new Intent(Intent.ActionPick, Android.Provider.ContactsContract.CommonDataKinds.Email.ContentUr...
asked by 04.05.2016 / 13:35
1
answer

WebAPI problem when trying to deserialize object with property of the same type (circular reference)

I'm doing some tests with WebAPI , to see how it behaves with circular reference, and I found a curious case. Model [DataContract(IsReference = true)] public class Pessoa { [DataMember(EmitDefaultValue = false, Order = 1)] p...
asked by 26.04.2016 / 21:55
1
answer

How to List Products from a Single MVC Distributor

I have an application that manages the Distributor and its Products. I want to list only the products of the Distributor that I have selected, but in the case everything is appearing. I tried to do this: public ActionResult ListarProdutosDi...
asked by 28.04.2016 / 20:18
0
answers

What is EntityFramework and how to use it with C # and connection to PostgreeSql and MySql databases?

I am programming a CRUD of students in ADO with C # and MySql, my algorithm teacher told me about Entity, but I can not find anything clear to make the connection between the banks. Someone explain to me?     
asked by 06.06.2016 / 17:30
0
answers

Xamarin - Load Frame with image inside a ContentView

I want to change this Sketch so that I can draw on a photo. I downloaded the github and I am making the changes. However, I'm not able to load an image on the screen when I set Image's Source. private Grid BuildGrid() { retu...
asked by 25.05.2016 / 20:07