Questions tagged as 'c#'

1
answer

Problem when changing entity with E.F and Dapper [closed]

I have a Dapper query, where I search for an entity: var fatura = ObterPorClientedEDataVencimento(cobranca.ClienteId, cobranca.DataCobranca); The Method and properties of my entity are in this Gist , I put it there just so the questio...
asked by 22.03.2018 / 12:50
1
answer

How to use Include for objects that are within a list

I have the following objects in my EF6 context. public class Produto { public Guid Id {get;set;} public string Nome {get;set;} } public class VedaItem { public int Item {get;set;} public float Valor {get;set;} public Guid...
asked by 20.04.2018 / 21:40
1
answer

For What is this command?

Hello, I'm having a question and I need a C # command to enable and disable a layer inside the animator in 3d unity. This server command for this? Animator.GetLayerName ("Nadando"); In case I want to select the layer "Swimming".     
asked by 19.03.2018 / 19:41
1
answer

Map Object Object in Entity Core

I have the class public class Email { public string Endereco { get; } public string NomeExibicao{ get; } } I'm trying to map to EF Core using the following code builder.Property(e => e.Email.Endereco) .HasColu...
asked by 20.03.2018 / 16:45
1
answer

Back Button does not appear in NavigationBar XamarinForms

I have a Menu Burger with a ListView where in the Click of the line of the listview I call this method to open a Modal, however the NavigationBar does not appear the BackButton. public async Task OpenModalAsync(Page poPage, bool bNavigatio...
asked by 20.03.2018 / 20:06
4
answers

Validation for Phone type field

Would anyone have any validation for phone type field? Where the user can not put fictitious numbers in the field as sequences of number (99999 8888 123456) or something of the type?     
asked by 12.03.2018 / 14:58
1
answer

Is there any way to extend a main file in Webforms?

I'm servicing an old application that uses Web Forms. This application uses Iframe to make a kind of layout reuse. The problem is that while doing this, a lot of code is being repeated, and I would like a solution for that. I come f...
asked by 09.03.2018 / 13:13
1
answer

Error converting base64 to String

I have a base64 string but the C # compiler says it is not valid, I get the following error:    The entry is not a valid Base 64 string because it contains a non-base 64 character, more than two fill-in characters, or an illegal character bet...
asked by 07.03.2018 / 22:41
2
answers

I can not use the Find () method using EntityFramework

I'm using the next tutorial to use the Repository Pattern: Follow my repository class public class Repository<T> : IDisposable, IRepository<T> where T : class { protected readonly EntityContext ctx; public Repository(...
asked by 06.03.2018 / 20:58
1
answer

Error initializing database on server in Asp Net Mvc!

I have a finished application developed in C # using Asp Net MVC. On my local server the application connects to the database that is on the server of the company that works, so when placing the application to run in the Host Network provider is...
asked by 16.05.2018 / 20:44