Questions tagged as 'c#'

2
answers

Repeat header in print

I can not divulge the report I'm using, so I've taken a generic template on google to help me explain the question. Assuming my report is as follows: ThesameismountedviaHTMLonasystemthatworkswithbothC#andVB.Net.Myintentionisoneachprintpage...
asked by 13.05.2015 / 19:35
1
answer

What "[]" means in the method declaration

I have the following method public BITalinoFrame[] Read(int nbSamples) { try { return device.ReadFrames(nbSamples); } catch (Exception ex) { WriteLog("Error reading the frames: " + ex.Message); }...
asked by 12.10.2017 / 19:56
2
answers

How to read the width and height of a physical image-type file?

How to get width and height of a physical image file?     
asked by 21.01.2015 / 15:01
2
answers

XML / C # - How to create tags containing other tags inside it

Allah Personal I have the following problem: I need to create a product xml file, in which each product will have a group, so that's fine, just by adding the data it creates the product tag and inside it creates the group , just when creating th...
asked by 03.01.2015 / 13:56
2
answers

Foreach Duplicating Data

I have 2 foreachs , to do a date search in ViewBags , where I return both in a select. But for each item in the first foreach, it makes a full loop in the second, thus doubling the values, by each item in the first. Ex: If I ha...
asked by 02.02.2015 / 12:56
1
answer

Testing classes with dependencies (C # + Entity Framework)

I have a "Sale" class (class summary just below) and in it I have a "Budget" property. What would be the best way to do a unit test in this class? I came across 2 problems: The mock frameworks require that we leave the methods we need to "...
asked by 10.08.2015 / 16:50
1
answer

Pass parameter to a C # MVC Controller

I'm learning ASP.NET MVC C # programs and would like to know how I pass data from a textbox to a controller. That is, I want to enter a value (id) in the View Index in a textbox and when I click Submit it returns me to View Details with the id t...
asked by 11.08.2015 / 18:40
1
answer

Install database together with the C #

I am finalizing a meeting room agenda that will be in the company reception, so I opted for the base to be locally and not networked. I want to use MySQL or SQLite. Can I install the database together with the application? For example: when unde...
asked by 14.08.2015 / 20:22
2
answers

Is it bad practice to use foreach within View?

Is it bad practice to use foreach within View ? If so, how?     
asked by 17.06.2014 / 15:27
4
answers

Can I use the Repository to do the BLL part?

I was reading about Repository vs Dao and I saw the following sentence:    [...] The Repository standard is intended to support the domain model   providing persistence. Unlike DAO, which is an object of   application infrastructure and is pa...
asked by 03.07.2014 / 03:50