Questions tagged as 'c#'

1
answer

Xamarin Forms - Error CS1061

How to resolve the CS1061 error in the code below: Code to open a local webview on each Xamarin.Forms platform public partial class MapViewDetail : ContentPage { public interface IBaseUrl { string Get(); } public MapViewDetail()...
asked by 03.05.2018 / 00:51
1
answer

How to do database transaction in WebForms?

I have an action on a .aspx file that runs multiple inserts in the database. I need that, in case something fails, the operation is canceled, since one record will depend on the other. I usually use a transaction function to do this in...
asked by 02.05.2018 / 21:37
1
answer

Save record in bank with entity

Dear colleagues. I'm developing a C# Winform application with database SqlServer and Entity framework . As I am inexperienced, I have been learning through the internet. I'm having a hard time understanding and implemen...
asked by 30.04.2018 / 21:21
1
answer

Adding platform to the Xamarin project already created

I started a project in Xamarin.forms a priori only for Android and UWP and did all the programming in the Portable project. Is there any way I can insert the iOS project so that the modifications of the Portable project integrate with it?     
asked by 08.06.2018 / 07:48
2
answers

When placing a class in DbSet using Migrations

I have the following classes: public DbSet<Request> Requests { get; set; } public DbSet<Answer> Answers { get; set; } being that they have a one-to-many relationship. When I want a class to be added to my EntityFramework migra...
asked by 08.06.2018 / 13:55
1
answer

Question about xamarin-forms

Good evening, I'm starting a project with development for mobile platform and my group we are developing using the platform Xamarin forms, my doubt is regarding the creation of the project, as we are trying to make a communication via web-ser...
asked by 28.04.2018 / 04:44
2
answers

Foreign key in WebApi with dotnet core

Next I'm creating a webapi (I'm using the Entity Framework) with two classes, Course and Discipline, where the course has the Id of a course, I created it as follows: public class Curso { public int Id { get; set; } public string Nome...
asked by 24.05.2018 / 04:06
1
answer

Error CS0266 Can not convert implicitly

When trying to make a listing where I only filter the 5 largest records by values in descending order this error is occurring:    Error CS0266 Can not implicitly convert type   "System.Linq.IQueryable" in   "System.Collections.Generic.ICollec...
asked by 25.05.2018 / 15:03
2
answers

Error in contact integration by the api

I updated the spring to the latest version and started to have an error in the integration of customer contacts, so I analyzed the problem should be in dependency, error:    Can not bind COM object of type 'System .__ ComObject' to   Interop....
asked by 25.05.2018 / 18:32
1
answer

How do I make console output appear in a textArea in WindowsForms?

I would like to know a way in which the output of my project will appear in a textArea in WindowsForms. I need this because my system is a binary number converter, and I want you to print on the screen the calculation step by step. If there is a...
asked by 12.06.2018 / 05:23