Posts by pnet • 14,727 points
909 posts
-
4
votes0
answers285
viewsQ: Service returns me cast error when consumed
I decided to make another post, since the subject is another, although in the original post, in the comments we touched on the subject, but no depth. I have that mistake:…
-
1
votes2
answers137
viewsQ: Property error cannot be set to System.Double
I took that mistake: The 'Datalib' Property on 'Release' could not be set to a 'System.Double' value. You must set this Property to a non-null value of type 'System.Single' The thing is that I…
-
-1
votes1
answer331
viewsQ: Error calling REST service
Yesterday good, my service worked, except for fields float, but commenting on this part until I have a solution, I was testing and running, in reality an Android APP to consume this service. Today I…
-
1
votes1
answer48
viewsQ: Error with lambda and fields float
Every time I carry my lambda, I make that mistake: System.Invalidoperationexception: 'The specified cast from a materialized 'System.Double' type to the 'System.Single' type is not Valid.' This only…
-
0
votes1
answer35
viewsA: In the java folder I have three subfolder, is that normal?
Well, I did the reinstallation and the alterations that LINQ posted. I don’t know if it was the reinstallation or the changes, because when he said, he was already uninstalling. Now it worked.…
-
0
votes1
answer35
viewsQ: In the java folder I have three subfolder, is that normal?
I’m having trouble with: java/lang/Noclassdeffounderror : java/lang/Object. I’ve already done a lot of things that colleagues asked for and nothing. I updated PATH and JAVA_HOME and nothing. My…
-
-1
votes1
answer138
viewsQ: Sharpdevelop X Visual Studio: are they equivalent at all?
Sharpdevelop is equivalent to VS or not, it’s a long way to go. I see great difficulties in installing certain packages, for example, the Microsoft.ServiceBus.Notifications. It is an alternative to…
-
2
votes1
answer55
viewsQ: A problem to solve with English expressions
I did this, to return a list. It turns out to be an error, saying that there is no way to transform an anonymous expression into the past type (object). public List<Liberacao> PegaLiberacao()…
-
1
votes1
answer228
viewsQ: Signal the receipt of messages
The customer has 7 stores and a headquarters. Someone in the matrix with decision power, will keep your mobile in hand with an app. When an employee of one of the stores needs to approve a higher…
-
5
votes1
answer41
viewsQ: Representation of an entity in my class
I got that field on the bench: ID_LIBERACAO and in my class of mastery I have so: [Table("Tabela")] public class Tabela [Key] [DataBaseGenerated(DataBaseGeneratedOption.Identity)] public int…
-
2
votes1
answer734
viewsQ: How to represent the Real type in C#?
I have an existing table in a bank of a client of mine and there has an attribute with the data type REAL. Like I do at C#? float or decimal? Which is the best way?…
-
0
votes1
answer31
viewsQ: In savechages it says which column is null and has value
When I call my method to record, the whole object comes filled in, but when savechanges() is called it says that Idbalanca is null and yet it has the value of 1. Method Insert: public virtual void…
-
1
votes3
answers83
viewsQ: How to make a max + 1 with lambda or Linq, but with tables from nothing, all null
I made this method and other attempts. With the table filled, ok, but with the table without data, it is giving error: public int GeraIdBalanca() { int chave = 0; var obj =…
-
1
votes1
answer26
viewsQ: Conversion error when trying to insert into the bank with Entity and c#
This is the method to insert: public virtual void Inserir(T item) { contexto.Set<T>().Add(item); contexto.SaveChanges(); } I created a method by passing the parameters to my object and then…
-
0
votes0
answers182
viewsQ: Insert given with Entity and no Identity field
I have this method to insert in the bank: public virtual void Inserir(T item) { contexto.Set<T>().Add(item); contexto.SaveChanges(); } And I have it in my Product entity, for example: .......…
-
3
votes1
answer1031
viewsQ: How to make a textbox receive only numbers
How do I make for a textbox receive only number, but only for WPF. With winform I can do, but with WPF I could not yet.
-
-2
votes2
answers46
viewsQ: Doubt with relationships N to N or 1 to N
Given the following scenario. I have 1 user table and a login table, for example. I need to create my domain class that maps these BD entities. In the login table, I get Idusuario. How it looks in…
-
1
votes1
answer52
viewsQ: How do I fill in a combo I fill in her Value with wpf and c#
I made this code to fill out a combobox. It works perfectly, but I need besides the text to be presented in the combo, also need to load a kind of Value, as we do on the web where we have Name and…
-
5
votes1
answer376
viewsQ: Web service hosting equals a website with pages?
I am developing a mobile application with Xamarin. This application is a screen to authorize or not discount above authorized by sellers. So I have a web service that goes into the bank and takes…
-
0
votes1
answer251
viewsQ: Load list with Entity
The following. I created a context class inherited from DbContext. public class SiloContext : DbContext { public SiloContext() : base("inetConn") { } public DbSet<Produto> Produtos { get; set;…
-
2
votes1
answer269
viewsQ: Error starting WPF application
When starting my application, an error message is displayed. The problem is that I cannot locate the source of the problem. Before I couldn’t, it started today. I thought it might be some…
-
1
votes1
answer429
viewsQ: Matrix Printer Printing with WPF C#
How do I print my tickets to a matrix printer (LX300) from routines made in WPF C#? Do you have anything specific for this? A drive or plugin?
-
0
votes1
answer89
viewsQ: Declare textbox event in XAML
How do I declare the Keypresseventargs event from a textbox to work with this event in Code Behind? The code to run the event I have, I just can’t declare the event, as I do with Click, for example.…
-
0
votes2
answers158
viewsA: I can’t get the value of a combobox with WPF
Yes, I managed to fix it. I understood that in WPF there is the property Name and not Value, so I could not. See the solution: ComboBoxItem ComboItem = (ComboBoxItem)cbxCereais.SelectedItem; string…
-
-3
votes2
answers158
viewsQ: I can’t get the value of a combobox with WPF
I can’t get the value of a combobox with WPF. How do I get value? This is the combobox code in XAML. <ComboBox x:Name="cbxCereais" HorizontalAlignment="Left" Margin="145,178,0,0"…
-
1
votes1
answer61
viewsQ: The show() method in my wpf does not work
I made a tiny desktop application using wpf. I have a very simple login screen and this screen should call the main screen. I did so: Menu menu = new Menu(); menu.Show(); You are making a mistake in…
-
0
votes1
answer106
viewsQ: Setting up the Xamarin
I’m learning Xamarin and mobile development. I have seen several examples of how to set up a small application and I see that practically everyone starts like this: Blank App (Xamarin.Forms…
-
0
votes1
answer488
viewsQ: Delete a foreach and replace the result in a lambda expression in a method
It’s pretty simple stuff. I have a method that takes a name inside a database and compares it with the parameter passed in the method and be equal, return it in the method, otherwise return a…
-
7
votes1
answer18750
viewsQ: How to integrate the application with Whatsapp?
I was wondering if it is possible to integrate an application made in C# with Whatsapp?
-
0
votes1
answer102
viewsA: Problems while recovering data from BD with Entity 6.1.3 and Web API
Resolvi. Falatava um Tolist() no Return do método: return contexto.Usuario.AsEnumerable().ToList();
-
1
votes1
answer102
viewsQ: Problems while recovering data from BD with Entity 6.1.3 and Web API
I did a test project, called quotation to use the Web API and Entity. Well, I went to my web.config and created my connection string like this: <add name="CotacaoContext" connectionString="Data…
-
2
votes1
answer145
viewsQ: Visual Studio 2015 - Extension Error
Whenever I open my Visual Studio 2015, give me this message: This is the log that the message points to: ERROR Extension will not be Loaded because an Extension with the same ID…
visual-studio-2015asked pnet 14,727 -
0
votes0
answers25
viewsQ: Project not found when trying to install Entity from Nuget
The drop-down list where all my Solution projects are or should be listed, is coming in blank. What should I do to list the projects there? I’ve already given a rebuild and it’s still empty. The…
-
1
votes0
answers79
viewsQ: I cannot install the System.Objectmodel reference in the Android Project
I picked up a reference error in my project The referenced component 'System.ObjectModel' could not be found.. Well, I searched and installed the reference to that path:C:\Program Files…
-
6
votes1
answer1880
viewsQ: MVC versus MVVM
I cannot differentiate between both MVC or MVVM. What really differentiates the MVC from the MVVM? In job interviews, sometimes they ask you exactly that, how do you differentiate one from the…
-
0
votes0
answers72
viewsQ: Problems running project with Xamarin: java/lang/Noclassdeffounderror : java/lang/Object
This always works when I try to run an Android or Crossplatform project. How do I resolve this? OBS1: I have the problem again and I don’t know what to do, I have no recourse to this.
-
1
votes0
answers45
viewsQ: Design mode error in Xamarin
I have this problem in my project using Xamarin: I searched the Soen and found that, but it didn’t. What is missing is to uninstall everything and I have no guarantee that it will work. Waiting for…
-
1
votes0
answers55
viewsQ: List of int in delegate Func<> not working
I am studying something and I have come across the following problem. I create a list of 7 elements and treat it within an Func<> works, but if I increase the list items, then my method does…
-
0
votes1
answer122
viewsQ: Fill a listbox with predicate<string>
I am studying DDD and Webapi and as I find difficulties, I research and try to solve. Of course, sometimes I come across simple things for some here and I can’t get it right away. Sometimes I even…
-
1
votes1
answer80
viewsQ: Project default is not found
I went to install a Nuget package and gave error Project default is not found. Well, I went to ComboBox Default Project to add the project I want to install the package and Combo does not list…
-
0
votes0
answers475
viewsQ: Error in @Scripts.Render("")
I cannot render bootstrap, scripts and etc, because mine @Scripts.Render and @Styles.Render doesn’t work. The reference System.Web.Optmization is included in the project. See the image with the…
-
0
votes1
answer103
viewsQ: Difference between Webapi and SPA
I know that SPA is nothing more than a WebApi specific, but the question is: How do I differentiate one from the other, ie what the purpose of each in the Development world. Why would I develop a…
-
1
votes2
answers1052
viewsQ: Unity installation is giving error
I went to install Unity for DI and the Nuget is giving an error, I did not understand, it seems to me that it points to the Newtonsoft, see the error below: Install-Package : An error occurred while…
-
3
votes2
answers450
viewsQ: Put two icons in the same paragraph
I have a paragraph in my view. In this paragraph, I have the indication of my mobile phone and I took the bootstrap symbol, so: <p><i class="fa fa-phone"></i> Phone (Brasil) : +55…
-
6
votes2
answers210
viewsQ: What do builders mean by this?
This builder has a this, what it really means? public class HelpController : Controller { private const string ErrorViewName = "Error"; public HelpController() :…
-
2
votes1
answer706
viewsQ: Doubt with @Style.Render
If I put in mine view Layout that line: @Styles.Render("~/Content/css") I’m stating that all the files .css in the briefcase Content will be rendered? I mean, I don’t need to put any .css explicitly…
-
5
votes2
answers83
viewsQ: Design based on the VS2015 spa template. How the service is generated
I created a project using the SPA template in Visual Studio 2015, to learn and understand, but I found this example very complicated. I still don’t understand where the service is mounted and…
-
0
votes1
answer177
viewsQ: Log in with the Facebook user
How do I do a c# or Razor routine on my site, so instead of the guy just by logging in the page, have the option to log in by the facebook user? I’m not asking for code ready, just how I do it.…
-
2
votes2
answers437
viewsQ: Putting social media buttons on the site
I am "playing" with the SPA MVC(C#) and would like to know how I put the social media buttons on my site. I looked for some examples here on the site and by my query, I found nothing that satisfied…
-
1
votes1
answer168
viewsQ: My controller can’t find the view
I made a controller called Email. In the ActionResult i give an Add View and create the view. When I right click on the ActionResult and give a Go to View, says he didn’t find the view, but if I…
asp.net-mvcasked pnet 14,727