Posts by Thiago Custodio • 621 points
39 posts
-
0
votes1
answer24
viewsA: Azure Webapp VS Azure Function
I would say that the main difference is in the paradigms. The main idea for using Azure Functions is in reactive scenarios, where an action or event will start running your Function. For this…
-
1
votes2
answers2445
viewsA: Why doesn’t Css work?
You need to import the font before using it: <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Open+Sans" />
-
1
votes2
answers730
viewsA: Class with method to change a parameter
public class Usuario { public string Nome {get; private set;} public string Endereco {get; private set;} public string Telefone {get; private set;} public Usuario() …
-
0
votes2
answers76
viewsA: Entityframework Aspnet Core Migrations
Delete the data from the Migrationhistory table or run dotnet Ef Migrations remove as the message suggests.
-
1
votes1
answer239
viewsA: Project Dependency Injection . Net Web API 2
I would choose Unity for the simple fact that it is what I am most used to and provides support for what I need (Interceptors, Flexibility to define scope of objects etc) and also because I have…
-
3
votes1
answer69
viewsA: Problems with IF loop
If is not a loop, but rather a conditional. Each condition must return a true or false (true / false to be more exact). See a simple example: var nome = window.prompt("digite seu nome"); if(nome !=…
-
0
votes1
answer46
viewsA: How to put a test site running on the same server
Create as virtual directory. A virtual directory appears to the browsers of the users of your site as if it were in the root directory of the Web server.…
-
2
votes1
answer292
viewsA: place Custom EN Message in required field
This error is related to the required Html5 attribute. This is the default message. You can change it via javascript: <form id="form2"> <input type="text" required /> <input…
-
0
votes2
answers907
viewsA: Unexpected type when serializing web API
How would I solve: Create a test project; Install your class with dummy values; Try to serialize using the same serializer as your main application EX: If you are Newtonsoft, just use…
-
0
votes1
answer129
viewsA: Conceptual doubt. Entity Framework, BLL and OOP
I’m not particularly fond of EF, but to answer your question, if the classes are exactly the same, there is a problem, because it shows a fragility in its architecture. That is, if tomorrow or later…
-
0
votes1
answer1934
viewsA: Class Factory Recovery Failure - Console Application
Windows Server is usually x64. The ideal would be for you to compile your application for Anycpu. I believe this way will not generate Exception.
-
0
votes1
answer14
viewsA: View contents of the Azure Service queue
Programmatically: this.receiveClient = QueueClient.CreateFromConnectionString(connectionString, queueName, ReceiveMode.PeekLock); receiveClient.OnMessageAsync( async message => { ... the handling…
-
1
votes1
answer858
viewsA: Error using Tempdata in ASP.NET 5: Session has not been configured for this application or request
I think the problem is something else. Take a look at whether Voce has the Microsoft.AspNet.Session package referenced. After that, check the order Startup.Cs: // Add MVC services to the services…
-
1
votes2
answers997
viewsA: Possibility to schedule threads in Java to run at different times
You can use Quartz Scheduler: Here is an example of its use: http://www.mkyong.com/java/quartz-2-scheduler-tutorial/ Official website:…
-
0
votes1
answer221
viewsA: Doubts about gzip compression on IIS servers
Apparently, IIS does not compress every request. Enter the configuration below in the web.config <system.webServer> <serverRuntime frequentHitThreshold="1" enabled="true" />…
-
1
votes1
answer1802
viewsA: C# MVC 4 - Action gives Error 404
From what I saw, this view will be rendered only if the verb used is the POST. try adding the [Httpget] attribute and publish again to see if it works. Another thing caught my attention in your url:…
-
2
votes1
answer122
viewsA: Turning a datatable into an array with jquery
Jquery é Javascript, so you can access normally via [] var x = [["link"],["<iframe id='player' type='text/html' width='452' height='272'…
-
0
votes2
answers1568
viewsA: How to display a modal using the c# and bootstrap button?
certainly, however you will have to build your own modal. That is, intercept the click on the browser, create Javascript / CSS to display the modal. In my opinion it gives more work, but follows an…
-
3
votes1
answer693
viewsA: Understanding the DDD Concept
The correct answer is: it depends. Your architecture must be emergent, that is, your requirements must guide the architecture. Is this project organization correct? A: Yes. However, what are your…
-
0
votes1
answer54
viewsA: POST on Azure Webapi generating Timeout
Jean, very strange this behavior. You are hosting your WEBAPI on a website? If yes, validate if it is in free mode (it may be a problem). However, even in free mode, you should get more answers.…
-
1
votes3
answers1704
viewsA: What is the use of Func<T, Tresult>
Func is a delegate (a "pointer" to a function). In this case, any method that receives a string as a parameter and returns a string can be used. take the opportunity to study Action and Predicate…
-
1
votes1
answer77
viewsA: Expand Object to Xml
I’ve already done it: internal class ToXml { public string GetXml(ExpandoObject obj, XElement rootElement) { foreach (var keyValue in obj) { if (keyValue.Value is ExpandoObject) { var root = new…
-
0
votes2
answers220
viewsA: Get number of computers that are using the network system
I believe that you should store somewhere the amount that is in use (database, text file, or something like that). When the user clicks out, you decrease the amount. Another way would be to…
c#answered Thiago Custodio 621 -
1
votes1
answer229
viewsA: Incoming SMS
According to the twilio documentation this functionality is not available in Brazil. Countries that have this functionality (free SMS) are: Australia, Austria, Belgium, Canada, Estonia, Finland,…
-
0
votes2
answers106
viewsA: Variable scope problem in each method
I believe your $.each code is wrong. I just ran a test and it worked: $(function(){ var response = ""; var items = ['a','b','c']; $.each(items, function(index, item){ response += item; });…
-
1
votes2
answers104
viewsA: Tool to measure the performance of an application on Html5 on an android platform
Taking into account that it is html, the performance is in charge of the mobile browser. So, you can use plugins like YSLOW or Google Page Speed . To simulate smartphones there is an extension for…
html5answered Thiago Custodio 621 -
3
votes1
answer273
viewsA: Exchange Entity Framework EDMX for Code First
If you can upgrade to EF6, just right-click the project, Add -> New Item -> Date -> ADO.NET Entity Data Model:…
-
0
votes2
answers285
viewsA: Method to edit data with Entity
something like that: var termo = ""; var arquivo = GetArquivo(termo); arquivo.TAG = "outra tag"; using (var ctx = new TESTEntities()) { ctx.Entry(arquivo).State =…
-
1
votes1
answer71
viewsA: How do I delete this method
As you return an anonymous type, I believe the simplest would be you can run a T-SQL command: var rowsAffected = db.Database.ExecuteSqlCommand("DELETE FROM RUPTURA WHERE IDRUPTURA = @IDRUPTURA",…
-
0
votes2
answers141
viewsA: Displaying massive amount of data
Splitting this data list into smaller groups and using threads and handlers to display these smaller groups is valid? Yes. What are the best practices for display? Do you really need to render the…
-
2
votes1
answer545
viewsA: How to upload multiple images to SQL Server using JSON in ASP.Net MVC?
I would use the plugin jQuery File Upload. Example of how to use it with ASP.NET MVC. Now, correcting your example, I believe that an exchange of $.getJSON for $.post(); passing the appropriate…
-
2
votes1
answer115
viewsA: How to do Logoff with Ajax?
Redirect will not work for ajax requests. You have to split into two parts. Ex: <script> $(function(){ $("#logoutForm").click(function(e){ e.preventDefault();…
asp.net-mvc-5answered Thiago Custodio 621 -
0
votes3
answers206
viewsA: Context in services and repositories
Ideal would be to inject the repositories / services into the controllers. This way, you can automate tests without actually hitting the bank.…
-
0
votes2
answers775
viewsA: Problems with Web.Config
Go to the BUILD Menu -> Configuration Manager. In the "Active Solution Configuration" combo, change to release. Check that the file . config that will be used is actually the web.config.release.…
-
2
votes1
answer1314
viewsA: What is and how does Claims work on Asp.Net Identity?
Authentication using Claims instead of assigning users to groups, you arrow Claims to the user. This way, you have greater flexibility when managing permissions. Links:…
asp.net-mvc-5answered Thiago Custodio 621 -
1
votes2
answers485
viewsA: Foreach within a cshtml
<div class="well" style="max-height: 350px;overflow: auto;"> <ul class="list-group checked-list-box" id="check-list-box"> @foreach (var rpt in Model.Apresentacao) …
-
2
votes1
answer157
viewsA: Azure services - what are the actual use cases?
The answer is that you can host both cloud services (web role) and web sites. There are some Features that only work in cloud services ex: -vpn for your business network, for example. Another cool…
windows-azureanswered Thiago Custodio 621 -
1
votes2
answers394
viewsA: Updating the multiple database structure in Azure
Yes, you can create a project database in Visual Studio, or use SSDT (Sql Server Data Tools). http://blogs.msdn.com/b/ssdt/ https://www.youtube.com/watch?v=uPll3dMxTXU…
-
2
votes3
answers1154
viewsA: How to verify if there is a specific value (string) in a list in C#?
foreach (var itemw in listaCentrosDeCustoEquipe) { if (itemw.CodCentroCusto == cc.Value) { <option value="@cc.Value" selected="selected">@cc.Text</option> } …