Posts by Danilo Breda • 1,146 points
38 posts
-
3
votes2
answers84
viewsA: Error running Savechanges EF6
Install "Microsoft System CLR Types for SQL Server 2012" below: X86 - http://go.microsoft.com/fwlink/? Linkid=239643&clcid=0x409 X64 - http://go.microsoft.com/fwlink/?…
-
0
votes3
answers314
viewsA: Cross-Domain Application Security Questions
Authentication exists for you to solve this problem in a safe way and unique in the HTTP protocol. You have these options among others listed here, these are the most used and recommended: Basic…
-
0
votes2
answers8686
viewsA: How to Resolve "Object Reference not set to an instance of an Object"?
I didn’t understand the need for a Repositorio, and it’s very similar to get and set structures used in JAVA. The Repository is not for that, but an abstraction of the DAO layer, which is therefore…
-
2
votes1
answer129
viewsA: Convert Autohotkey script to C# or VB6
Use the Autohotkey.Interop to work on C#. The code goes something like this: public class AutoHotKey { private readonly AutoHotkeyEngine _ahkEgine = new AutoHotkeyEngine(); private const string…
-
1
votes1
answer735
viewsA: How to convert HTML to RTF?
Unfortunately, there are no good open sources converters... So far the only available is which Voce used which is this project. In case this error occurred because the conversion uses the WPF…
-
0
votes2
answers308
viewsA: How to Include an Item in a Icollection
An Icollection type is just the sampling of a collection (readonly), being List, an implementation of Ilist, which comes from Icollection, along with list manipulation methods(e.g.: Add, Remove,…
-
4
votes2
answers1560
viewsA: Check that SQL Server is installed C#
It stays in this log path, as well as all SQL verses: Use the following code to check if the record exists: RegistryKey key = Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\Microsoft SQL…
-
0
votes2
answers539
viewsA: Error Windows cannot find 'svcutil.exe'
Use SDK version for . net 4.0 available here: https://www.microsoft.com/en-us/download/details.aspx?id=8279 svcutil.exe which is in v7.1/bin has version 3.0...(not 4.0) svcutil.exe which is in…
-
1
votes2
answers264
viewsA: Server Side Only Rest Api
The answer is nay, the authentication exists for you to solve this problem in a safe and unique way in the HTTP protocol. You have these options among others listed here, these are the most used and…
javaanswered Danilo Breda 1,146 -
4
votes2
answers380
viewsA: How to transpose the result of a search using SQL Server?
There are 3 ways to do: Union All, Aggregate and Case. Unpivot and Pivot Static. Dynamic Pivot. But in matters of performance, Pivot and Unpivot are the recomentados, because they are proper…
-
2
votes1
answer150
viewsA: Integrating Webservice C# with android
Android SDK does not give the javax.microedition.io preview. Take a look at Package Index This is missing this past as I realized in the error: Caused by: java.lang.Noclassdeffounderror: Failed…
-
2
votes2
answers1387
viewsA: List Folders and Subfolders of an FTP with C#
I use Regex, along with detailed ftp return. Follow the code: static string regex = @"^" + //# Start of line @"(?<dir>[\-ld])" + //# File size @"(?<permission>[\-rwx]{9})" + //#…
-
0
votes1
answer197
viewsA: Resize an MDI Form without borders
I don’t know if I solved your problem because this very confusing your question... In the Child form builder, add these lines of code: this.Dock = DockStyle.Fill; In the Form_load event, you must…
-
3
votes1
answer1102
viewsA: Fluent Nhibernate - Composite Key Mapping
I use the Compositeid() of Fluentnhibernate, and use the Ference. Hasmany is if it’s a collection I want to upload together. By your code you should already know the difference. CompositeId()…
-
2
votes2
answers271
viewsA: List with large amount of items, excessive memory consumption
If you know that it adds up to 40,000 items, it is recommended to put a limit on that list so that you have a performance gain described at that link. Every time you add an element to the list, and…
-
0
votes1
answer1990
viewsA: How to disable some C#keys?
Answer if it is a Desktop application, in the case of Web application, I know no solution. First of all, this is not a cool thing to do, in case you have some antivirus or something like this your…
-
1
votes1
answer111
viewsA: Visual Studio 2015 crashes when I type "<" in Apache Cordova
According to the following bug: https://github.com/aspnet/Tooling/issues/112 The problem is due to the lack of compatibility between the HTML or Razor view editor and Cordova. Possible solutions:…
-
1
votes1
answer743
viewsA: Work with C#image
Use as follows: var Ima = Image.FromFile(@"C:\Users\PC\Desktop\kOWnj.jpg"); var Imb = Image.FromFile(@"C:\Users\PC\Desktop\AlaDL.jpg"); Image IMGfinal = MergeTwoImages(Ima, Imb); I’ve done with both…
-
1
votes1
answer169
viewsA: Very difficult to mount an update with Linnus
Use the Line as follows: DataTable dtSolicRel= dataSet.Tables["NomeTabelaa"]; var rowsWithAccount = from row in dtSolicRel.AsEnumerable() where row.Field<object>("DT_GERACAO") == null…
-
0
votes1
answer66
viewsA: Upload file to FTP, directly from a URL
Try uploading in stages... And always close the connection. while (!feof($src)) { stream_copy_to_stream($src, $dest, 1024);// no caso 1024 bytes por vez. } fclose($src); fclose($dest);…
phpanswered Danilo Breda 1,146 -
0
votes1
answer93
viewsA: Stackoverflow in System.Windows.Forms.dll
Stathreadattribute is essentially a requirement for Windows to perform communication with COM components. However, Windowsforms does not use COM components. Therefore, access to serial ports and…
-
1
votes1
answer2691
viewsA: Search image in HTML code
First you need to install a NUGET package in your project, called Htmlagilitypack - Nuget, he who will help you in this!. After that the Htmlweb of the code below will be available in your project…
-
7
votes2
answers548
viewsA: Memory error when entering millions of records using Entity Framework
The Entity Framework was not made to enter 1 million records... It has an internal memory limit...(index dele) Asnotracking() will not solve... I have already performed the most complex tests…
-
1
votes1
answer425
viewsA: Popular datagrid with threading
A screen element UI(control), in Winforms and WPF do not allow to be accessed by other threads or multiple threads. The UI element can only be accessed by the thread that was created on it. What you…
-
0
votes2
answers83
viewsA: Mysql connection to Delphi6
dBExpress has support for mysql... since version 6 of Delphi. Devart website - dbExpress
-
1
votes2
answers706
viewsA: How to forecast a future value?
Nothing that lists and rule of 3 won’t solve... our math friend will help us in this... You can do it in various ways... average or sum of the daily Kills/Deaths... and make a projection of these…
c#answered Danilo Breda 1,146 -
1
votes2
answers756
viewsA: Possible SHA256 return 128bytes after signing?
I’ll just start a discussion of what might be going on... Dim data = Encoding.UTF8.GetBytes(Me.txtCNPJSoftwareHouse.Text + Me.txtCNPJEmpresa.Text) Dim csp As RSACryptoServiceProvider =…
-
1
votes2
answers2459
viewsA: Reportview without a dataset
First, if you are working with Crystal report, I recommend that you see some tutorial, because it is a little complicated to use. I will give you an example that I use and can be very useful for…
-
5
votes1
answer1025
viewsA: How to turn hours into seconds in R?
1 hour equals 3600 seconds... then... # Vamos ler os dados x <- unlist(strsplit("2:00:00 3:00:00 6:00:00 4:00:00 4:00:00 3:00:48 1:00:00 3:00:00 2:00:00 4:00:00 1:30:00 2:00:00 1:00:00 3:00:00…
ranswered Danilo Breda 1,146 -
2
votes1
answer566
viewsA: Load Gridview with variable data
You are creating a datatable with columns of name = "": As it should be: int numCoordenadas = getNumeroDeCoordenadas(); DataTable dt = new DataTable(); dt.Columns.Add("latitude", typeof(string));…
-
1
votes1
answer166
viewsA: Sql CE 3.5: Data generation probelma
EF requires System.Data.dll which is currently not supported by Windows Phone... What is currently supported is Linq to SQL that works just like the EF ORM style. Main information At this Link I…
-
1
votes1
answer141
viewsA: How to import a cursor. cur in C#
Add the . cur in your application’s Resources... there it will be next to your project and it will not be an external file to your project. So much so: this.Cursor = new Cursor(new…
-
4
votes2
answers2764
viewsA: Windows Forms Start with Operating System
There is the Registry editor where you can register keys. What you need to do is add a boot key to it in the following way: Microsoft Windows Currentversion Run SOFTWARE But the inclusion of Value…
-
1
votes1
answer162
viewsA: Problems with logic to bring data from a list or table
I swear I didn’t quite understand your question, but I will answer to try to help you... (I’m not so familiar with Linq) List<UN> ListaUN;//carrega a lista de UN do banco. foreach (var…
-
4
votes2
answers519
viewsA: How to replace from one server to another?
First you need to set a primary key to this table otherwise it will be Readonly and Voce may not update this table. In this case I set the IDDNS as PK for test being the only field that its value is…
-
5
votes2
answers479
viewsA: Login to a web site by the program
Use the Cookiecontainer(): string formUrl = "http://exemplo.com.br/auth.php"; string formParams = string.Format("username={0}&password={1}", username.Text, password.Text); string cookieHeader;…
-
3
votes2
answers2135
viewsA: Problems installing a service on Windows Server
Are you running Prompt as an administrator? If it is windows 8 I suggest you try to do the same operation in a window 7. However I already had some problems with installutil.exe... so I do the…
c#answered Danilo Breda 1,146 -
1
votes1
answer258
viewsA: How to create an XML tree with attributes using LINQ
I didn’t really understand your question because there is no way to use a general xml... For access to data from a certain collection, in the example below we use Xelement and Xattribute to help us…
c#answered Danilo Breda 1,146