Questions tagged as 'c#'

3
answers

C # MVC Execute Function (LogOut) When Closing the Browser

I'm in a service system and I need help to understand how I can call an event (Javascript / jQuery / Not) when a user closes the browser without a "correct" system logout. . Att.     
asked by 15.09.2015 / 20:42
2
answers

Hide different actions for different user profiles

I am in a project where I have 3 different levels of profiles: Administrator , Teacher and Coordinator . I already have the login module, registers and such. What happens is that I wanted for each profile type to appear only what is allowe...
asked by 25.05.2014 / 03:15
2
answers

How to use fluent nhibernate properly?

One problem I have encountered due to inexperience with this kind of tool is how to use lazy load without interfering with the software architecture. I use the following architecture: IHM (Human Machine Interface): It has all the forms a...
asked by 24.06.2014 / 21:01
3
answers

Create and read DLL in php?

Would it be possible to create and open windows DLL libraries in php? I want to organize my php classes in dll so that they can be used in both php and C #, if there is an alternative, it also works.     
asked by 29.04.2014 / 21:56
3
answers

Find string in more than one SQL table

I would like to fetch a given string using LIKE in more than 1 table. Here is an example of how I did it, which will probably spend a lot of time or not fetch all tables: string SQL1 = @"SELECT * FROM TB_1 WHERE NOME LIKE '%' +...
asked by 06.03.2014 / 19:37
3
answers

Comparison of = e = with strings

I have a field in the database that is in the following format: YYYYMM Using procedure I can normally search these fields: WHERE I.DT_INCL >= @inicio AND I.DT_INCL <= @final When I try to pass the query to linq it returns the...
asked by 06.03.2014 / 13:42
2
answers

In an architecture, does the number of DLLs influence performance? Scalability?

I have the habit of creating my solution like this: Entity - Class Library (Classes, entities) Utils - Class Library (Classes of help, security, generate xml, anyway, functions of all kinds) Repository - repository pattern...
asked by 04.04.2014 / 15:47
3
answers

DataAnotation Attribute for Currency

I would like to format with DataAnnotation currency but default en in the model: [Column("cur_mensalidade")] [DataType(DataType.Currency)] [DisplayFormat(DataFormatString = "{0:C0}")] public decimal? Mensalidade { get; set; } but does no...
asked by 03.05.2016 / 14:34
2
answers

How to recover from an Exception and send data from it?

I would like to know if there is any way for when my system throws some kind of Exception it will only recover and send me an email informing where it occurred and which Exception was released!     
asked by 16.03.2014 / 19:16
1
answer

What are dynamic properties?

I'm studying ASP.NET and saw the following code snippet: ViewBag.QtdNovosComunicados = (from c in comunicados where c.DataCadastro > UsuarioLogado.dtUltimoAcesso select c).Count(); I understand that I am creating a new property...
asked by 20.10.2017 / 17:02