Questions tagged as 'c#'

1
answer

Get data via JSON by URL in C #

I need to get data via JSON, through a URL, this link: link I'm trying with the code below, but I already get error as soon as it downloads the string. The error you received is:    The character string is not in JSON format. Howe...
asked by 12.06.2018 / 04:51
1
answer

How to reference the copyright of the PdfSharp tool under the MIT license?

I need to make a C # program that generates a PDF report. For this, I'm using PdfSharp , which is under the MIT license. In this case, where should I put the reference to the PdfSharp license? In the report generated?     
asked by 29.05.2018 / 21:51
1
answer

DotnetZip zip file without directory folders

I'm using dotnetzip to zip a file but the zip file takes the root directory of the file, I just wanted to zip the file without the directories: public static void Zipar(FileInfo file) { using (ZipFile zip = new ZipFile())...
asked by 09.11.2017 / 13:15
2
answers

C # route redirecting to wrong action

I have an action that returns a PartialView [HttpPost] public ActionResult SelectCidadesPorCodigoUF(int idUF) { //It do something and returns a PartialView } This action is mapped as follows: routes.MapRoute( name: "SelecionarCi...
asked by 08.11.2017 / 17:50
1
answer

ORA-00911: invalid character

I'm having trouble with OracleParameter, I could not find the problem, because I can not see the sql after the assignment of the parameters ... follow the code: private DataTable GetSearch() { string sql_work = "select w....
asked by 03.07.2014 / 15:01
2
answers

Generate reports in C #

Someone knows to tell me a free report generator for .Net. For example, in Java I know Jasper is very good, but for .NET I am not finding anything. What I need is a simple report, looking at a table of mine .... You will not have any images,...
asked by 24.06.2014 / 20:22
2
answers

Service Layer and BLL are the same thing?

I have questions about service Layer and BLL , what's the difference? where is it used? I'd like to sample classes using these structures.     
asked by 25.06.2014 / 16:03
2
answers

loop of repetition C # asp components

Would you like to make a loop in this case? PaperBLL paperBLL = new PaperBLL(); List<PaperEO> papers = paperBLL.SelectPapers(); HyperLink1.ImageUrl = "~/App_Themes/MultiMercadoLibertyExclusiva/Capas/" + papers.First(x => x.id == 1)....
asked by 02.07.2014 / 19:17
1
answer

Error in 1 to 1 relationship declaration in EF with code-first and attributes!

I have the following classes where I want to do a 1 to 1 relationship: User: [Table("Usuario")] public class Usuario { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int Id { get; set; } [Required]...
asked by 01.07.2014 / 16:38
1
answer

Query Return - Generic Repository Entity Framework

I have a generic repository and I realized that it is taking a long time to return a query with the selection of some columns of my database, the Query () method is as follows: public IList<T> Query(System.Linq.Expressions.Expression<...
asked by 26.04.2018 / 13:24