Questions tagged as 'c#'

3
answers

Linq filttar elements of LEFT JOIN

I would like to return an object with your children, but only wanted to bring the children that corresponded to a certain condition. ex: I have the following classes: public class Fornecedor { public int FornecedorID { get; set; }...
asked by 11.11.2016 / 17:29
0
answers

Jump Method with more than one animation sequence

Friends I'm messing with the leap animation of a character and this animation has two sequences, one of when to walk, another to run: if (Input.GetKeyDown(KeyCode.Space) && liberaPulo == true && Input.GetKey(KeyCode.D)...
asked by 16.04.2018 / 23:39
1
answer

Doubts about using GUID type instead of int [duplicate]

I see many models of systems on the net where Id fields are defined with type GUID instead of INT, as in the example below: public class Product { public Guid Id { get; protected set; } public string Name { get; protected set;...
asked by 18.04.2018 / 18:13
0
answers

TLS version in NFe 4.0 urls

I'm implementing the NFe 4.0 webservices and would like to ask a question about what defines the security protocol that is used in communication. The behavior of the connection is different for some machines and is causing problems. Both machine...
asked by 12.04.2018 / 15:03
1
answer

Upload Bitmap in PictureBox

I am building a code to scan biometrics. How do I put the image generated on the device in the pictureBox What I use to mount the bitmap image public Bitmap ExportarBitMap() // Exporta para o BitMap { if (!Connected) // Valida s...
asked by 12.04.2018 / 14:59
0
answers

Consume query operations and purchase Web Service with C #

So folks, I need to consume a Web Service for an airline company. But, there are still two tasks that I need to add to the .asmx server and I'm having second thoughts. An operation is: 1) Consult Flight (query information): date of flight,...
asked by 12.04.2018 / 06:02
0
answers

Execute event by changing text field focus

I have a text field inside a column of my GridView with the following code: <asp:TemplateField HeaderText="Teste"> <ItemTemplate> <asp:TextBox ID="txtTeste" runat="server" Width="100px" Text='<%#Eval("TESTE", "{0:...
asked by 12.04.2018 / 22:15
1
answer

Set login page by user profile

Good afternoon guys, I need your help. I have two access profiles to my system. "Master-IT" and "Developer" This is my system login controller [HttpPost] public ActionResult Index(Usuario usr) { if (ModelState...
asked by 12.04.2018 / 21:59
0
answers

Problems Querying a Record Using the EntityFramework Core

I have a one-to-many relationship between the "Person" and "Person" tables. My idea is to have a People register (Register anyone other than a customer, an affiliate, or a supplier ... just a person). When a person is going to become a customer,...
asked by 11.04.2018 / 23:10
0
answers

EntityFramework Core 2, update date in every update

I have a scenario where my template has the fields CreatedOn and UpdatedOn and following what I found in the EF Core documentation I implemented my class as follows builder.Entity<Registro>(b => { b.Property<Dat...
asked by 19.04.2018 / 22:48