I have a slow query in Oracle to list all accesses for a user, so I thought of writing the result to a Session , the average of records returned is 600, with%?
Would you have any other better way to save this data?
When I receive a post in an application Web Api I need to notify a certain client that a new record has been entered. This user will see this notification in a separate client application ( javascript ) of the Web Api...
Follow the code below:
Controller (with post action):
var file = Request.Files[0];
var bytes = ConvertTo.Bytes(file);
ConvertTo Class:
public static byte[] Bytes(HttpPostedFileBase result)
{
var length = result.InputStream.Leng...
I mounted a paging control for a blog that I'm putting together, but I'm not sure if I did it the best way, I tried to copy the paging control of Stack Exchange sites. Could you guys take a look and tell me what you think?
A screenshot of h...
My question is this: I can move to the controller OR the file OR the form. I was wondering if there is any type (same FormCollection, however this apparently only gets the form itself, the files posted together does not) that it receives both th...
Good afternoon, I'm having a problem implementing external login in a project I'm working on.
ASP.NET Web API + Owin + OAuth.
Environment:
I work with two Server1 and Server2 servers.
Server1: Server published on the WEB. It hos...
I have a performance problem in paging with Entity Framework and SQL SERVER, first it does getAll to later list paging
var bdPergunta = new PerguntaRepositorioEF(contexto);
var pergunta = bdPergunta.GetAll().OrderByDescending(x => x....
One of my system classes is created with information from a file.
When you start the system, it initially runs the following lines:
public List<Estabelecimento> listaEstabelecimento(string ibge)
{
List<Estabelecimento> lista...
Using Entity Framework Code First, with view model and model .
To create a column with varchar(2) , I need to put MaxLength(2) in model and view model ?
I made a query in the database in 2 tables and saved in 2 objects in the controller , but I can only send 1 object to view .
// Controller
// Pego os dados do BD e salvo no objeto
var objPessoa = new PessoaAplic();
var dadosPessoa = objPesso...