Posts by pnet • 14,727 points
909 posts
-
1
votes1
answer305
viewsQ: Develop an MVC project with Web API
Someone asks me to develop an MVC application with various technological elements such as Angular, Bootstrap, Entity and so on. I then create a Web API project, can I guarantee to this person that…
-
1
votes1
answer181
viewsQ: How do I install Sqlite on Android?
How do I install Sqlite on Android? I downloaded the program and there is no installer on it. What do I do? I downloaded it from PC and not smartphone.
-
1
votes1
answer172
viewsQ: Project class library does not open. Gives error in . csproj it
That is the mistake: There is how to generate a new . csproj or fix this or I have to create a new project and import everything into it?…
-
0
votes0
answers44
viewsQ: How best to represent a FK in the field
I have for example two entities in my BD. Type_user and User. User receives a Typo_user FK from the Idtipousuario field. In my Domain(C#) I would have: TipoUsuario public int IDTipoUsuario { get;…
-
5
votes1
answer72
viewsQ: How to kill, remove or not initialize the SQL Server master database?
I woke up in the morning and gave a "Run" on top of the bank "cotacao", bank that I am working at the moment. Then came the login screen and when I logei the bank that received the tables was the…
sql-serverasked pnet 14,727 -
7
votes2
answers74
viewsQ: What is the best type to store area, volume, perimeter?
Decimal, Numeric or Float. What is the best option for storing area or volume? I would use Decimal, but I would like to see the opinion of others as well. I guess not, but the right guy or the next…
-
1
votes1
answer257
viewsQ: Write address by coordinates and pick up google maps
I know google provides its api for maps. I would like to record addresses but also the coordinates, that when the user read these coordinates, already showed on his screen or in his App, the map of…
-
0
votes2
answers88
viewsQ: Distribute my app via email
I distributed my App, compiling in release and then the Archive option. Well, it generated the key and several files. Now how do I email to my client and also put on my website. What will he get to…
-
0
votes0
answers193
viewsQ: Error placing conditional build on Assemblyinfo.Cs file
When I put this in my Assenblyinfo.Cs do not compile #if DEBUG [assembly: Application(Debuggable=true)] #else [assembly: Application(Debuggable=false)] #endif and gives error in almost all classes.…
-
0
votes0
answers84
viewsQ: Send information to Rest and trigger notification
I’m in doubt in the construction of a REST, not well in construction, but which way to go, what approach. See my business. 1) The customer asks for a discount. 2) As the seller is not allowed to…
-
0
votes1
answer40
viewsQ: Real type fields in bank with problems loading Model
About 3 or 4 months ago I had this same problem, which after I remade all my Model, solved it. And now it’s back to the same problem. Before it was with the float and now with the guy Royal. In my…
-
2
votes1
answer299
viewsQ: Error: Multiple controller types Were found that match the URL
When requesting a service by my App, gives me this error: Multiple controller types Were found that match the URL. This can if happen attribute Routes on Multiple controllers match the requested…
-
1
votes0
answers28
viewsQ: I can’t resize Popup in my App
I downloaded a project and I have a popup working. I went to do the same thing in my project and nothing. There is no error, only the popup does not go up as it should, it occupies the entire area…
-
1
votes0
answers48
viewsQ: Popup does not appear in my App
Use Rg.Popup.Plugins for popup creation. Well, when I put in project it doesn’t run, the screen darkens, but I click on it and nothing happens. I put a button with a red background and it still…
-
1
votes0
answers79
viewsQ: I get messages in the background but don’t show the badge with the message counter
In my App I can receive messages in Background. In foreground I can see the badge and qde of incoming messages. I just can’t in the background. I use the plugin Xamarin.Firebasepushnotification of…
-
3
votes0
answers44
viewsQ: Pick up on Mainactivity events in App.xaml.Cs
I have it on my App.xaml.Cs CrossFirebasePushNotification.Current.OnNotificationReceived += (s, p) => { System.Diagnostics.Debug.WriteLine("Received"); }; When I receive messages, ie have…
-
2
votes1
answer1291
viewsQ: Initializecomponent does not exist in the current context
I have this code, where I have the error [XamlCompilation(XamlCompilationOptions.Compile)] public partial class AprovarPopup : PopupPage { public AprovarPopup() { InitializeComponent(); } protected…
-
1
votes0
answers18
viewsQ: I can’t receive messages for my App in release mode
In debug, I took the token and added it in my Nder and sent PN. I deleted it, recompiled it in release mode and now I can’t send PN(Push Notification). See the code of my Sender: public partial…
-
1
votes0
answers31
viewsQ: Whenever I turn the debug mode, it gives me An hundled Exception error occurred
That is the code public override void OnCreate() { try { base.OnCreate(); //If debug you should reset the token each time. #if DEBUG FirebasePushNotificationManager.Initialize(this, true); #else…
-
0
votes1
answer425
viewsQ: How to uninstall nuget packages at once, including dependencies
There is a way to uninstall nuget packets at once, without having to look around or hoping to give the error to know which is the dependency to uninstall and then go uninstalled one by one. If I…
-
0
votes1
answer505
viewsQ: Object initialization can be simplified
After having made some updates to the nuget(18) packages, I went to compile my project and this error occurs: Object initialization can be simplified It points to those files in my code.…
-
1
votes1
answer673
viewsQ: Create popup with Rg.Plugins.Popup
Does anyone know any tutorial for creating popup on Xamarin.Forms using this plugin, Rg.Plugins.Popup? I need to create a popup and inside it a textbox or textarea with two buttons (Ok and Cancel).…
-
-3
votes1
answer85
viewsQ: Is there the possibility of creating a popup and inside it a textbox to type something?
Is it possible to create a popup and put something to be typed and two buttons, Cancel and OK? There is this possibility?
-
1
votes1
answer89
views -
0
votes1
answer56
viewsQ: Service stopped working when generating the chart
I was having trouble generating a graph, which is solved. The code below was ok and suddenly stopped, IE, the service is not running on account do not know what. At the time I call the Getservice…
-
2
votes1
answer571
viewsQ: How to call asynchronous method in class builder?
How do I call a method marked as async in a class builder?
-
1
votes1
answer89
views -
3
votes2
answers67
viewsQ: How to avoid the sum of items in my lambda. Result is not expected
I got this lambda: [Route("getliberaitens/{id}")] public List<LiberacaoItensDTO> GetLibItems(double id) { var lista = contexto.Liberacoes .Join ( contexto.ItensLibs, t1 => t1.IdOrcamento,…
-
1
votes1
answer38
viewsQ: lambda error with Join when placing a Groupby
In this lambda, is giving error in select in t1 and t2. If placed Key says it does not recognize Totalliquido and the fields in t2. If removed Groupby works. public List<LiberacaoItensDTO>…
-
2
votes1
answer624
viewsQ: Button on a View with MVC/Web API
When we put a button in a View, how do we fire a click of it? I have this button: @model IEnumerable<CarregaDados.Models.Cliente> @{ ViewBag.Title = "Index"; } <h2>Index</h2>…
-
0
votes1
answer1557
viewsQ: Send parameters to Restfull services
I have a web application mvc and in it I have an action that should pass a parameter to a REST service. How do I pass a parameter to a REST service. I know that I will have to implement an Httppost,…
-
0
votes0
answers31
viewsQ: How to display a single chart slice without repeating
I have a table called Itenslib. This table I keep the items of a sale. In this table, I made a sum for Profit and Total. The problem is that, for example, the sale with this ID:100030087 it has 5…
-
2
votes1
answer112
viewsQ: I made a sum with lambda and is not working as expected
I need to make a general sum for total and profit. If I made a sale with 4 items, I’m seeing in my grid four sum and that’s not it, even if it repeated 4 times, but it should be just a sum. I need…
-
0
votes0
answers247
viewsQ: When sending a notification, how do I show the badge icon?
This is the Oncreate from my Mainactivity. Note that I have a badge with a value of 10 for testing. Now I need to make sure that by submitting a Notification, I can increment the badge icon with the…
-
1
votes0
answers47
viewsQ: To the popular the list, is coming null
In my App I populate two grids. That’s ok. I take the data of a service, that way: dataGrid.ItemsSource = await dataService.GetLiberaAsync(); itensGrid.ItemsSource = await…
-
0
votes1
answer21
viewsA: I cannot implement a Sfdatagrid
I got it this way: SfDataGrid dataGrid; DataService dataService = new DataService(); public App() { InitializeComponent(); dataGrid = new SfDataGrid(); MainPage = new ContentPage { Content =…
-
0
votes1
answer21
viewsQ: I cannot implement a Sfdatagrid
Trying to follow a tutorial here to create a Sfdatagrid, but it’s not working. I’m very doubtful about how to implement it. My Model Class namespace Autorizador.Model { public class LiberacaoGrid {…
-
0
votes0
answers55
views -
0
votes1
answer44
viewsQ: Windows service sharing information with a Rest
Is it possible for a Windows Service to exchange information with a Web Service Rest? If so, is that good practice or not? Why the question? This is what I need to do. When a flag in the bank is…
-
0
votes1
answer448
viewsA: Error of Mismatchsenderid
The problem is that Senderid is a constant. As before it was set for a project, it was bringing the former value of Senderid. I set it to the current value and it’s OK. I looked at this whole code,…
-
0
votes0
answers206
viewsQ: There is no vs_setup.msi file, as I do
I use VS2017. The option Other Project there is no. I had to download an extension, install, in order to have this option, because I am doing a windows service and I will need to install this…
-
2
votes1
answer448
viewsQ: Error of Mismatchsenderid
I had several projects on my console. I was able to receive push notification (PN). So I dropped all the projects and created just one. I made an app based on the step by step that a colleague…
-
0
votes0
answers212
views -
0
votes1
answer155
viewsQ: A timer for a service read a table in the comic book
I need to get a service to read a table in the comic book every 5 or 10 seconds. I don’t see any other way to do that. When in this table a certain Flag is changed, then the service pushes a message…
-
0
votes0
answers721
viewsQ: How do I get my App to receive even closed or blocked notification
If I lock my Cell screen and leave the App open, I get Notifications, but if I close the App I can’t receive any more. The problem that when it started working, was getting in all situations and…
-
0
votes2
answers219
viewsQ: Service to pick up a change in the bank
Here’s what I need. As I do for a service to auto startar whenever the flag of the bank changes from 0 leg 1. I have a field in a table in the BD(Sql Server), that every time the seller request a…
-
1
votes1
answer595
viewsQ: My notifications are not coming and I think my code may be correct
I made several attempts to send Push Notification and none of them I was able to view in my App. I always thought until now, that I was wrong. But I followed two steps and saw that with the guys it…
-
0
votes0
answers65
viewsQ: How to show my phone in vs2017 and compile with it?
Today I use vysor to create my applications. Without Vysor, I can’t see my Cell(J500M) in the VS2017 debug bar. There’s another way I can plug in any phone and show up on VS2017 without using…
-
0
votes1
answer115
viewsQ: Does not install Xamarin.googleplayservices.base
Even praying, we are able to install the plugin via Nuget: Xamarin.googleplayservices.base The message is: Unable to install 'Xamarin.GooglePlayServices.Base package 42.1021.1'. You are trying to…
-
0
votes0
answers60
viewsQ: Error of: Unauthorized Error
I downloaded a project to test sending push notification. I am trying in various ways and without success. This project is from a guy named Habibali. When I spin it gives the error of Unauthorized…