Posts by Carlos Lemos • 324 points
12 posts
-
1
votes0
answers25
viewsQ: How to use EF Core Code First in Azure Synapse
I’m trying to use migrations to manage database schemas with Entity Framework Core and C# in Azure Synapse, when I run the update-database command I get an error message as described below: Enforced…
-
2
votes1
answer36
viewsA: Does anyone know how to solve the System.Formatexception problem ("incorrect character input)
Good afternoon, I believe you have using a [ by mistake right after the :, replace with { na line below: Console.WriteLine("Val.Compra....:[0,15:c}", valorCompra);…
-
0
votes2
answers303
viewsA: How to use the same ZPL code on different dpi printers
I did as follows, I keep a register of printers where I have the same DPI information and create all my zpl templates in the standard 300 DPI when it is necessary to convert from 300 to 200 DPI with…
c#answered Carlos Lemos 324 -
6
votes1
answer493
viewsQ: How to recover the page HTML generated with Angularjs via C# ?
How to recover HTML code from a page that uses Angularjs to process some information and generate a graph? I was able to easily recover the HTML code using Webrequest as demonstrated in the example…
-
0
votes4
answers3805
viewsA: How to order an array dynamically with Angular JS?
In Angularjs: {{ orderBy_expression | orderby : Expression : Reverse}} In javascript: $filter('orderby')(array, Expression, Reverse) Follow the link of the documentation written in English but with…
angularjsanswered Carlos Lemos 324 -
1
votes2
answers1179
viewsA: Controller does not see ng-model of Angular JS
The ngModel directive is responsible for linking an input, select, textarea, and other controls to a property in Scope, without the need to pass such information as arguments to any method. For more…
-
0
votes1
answer684
viewsA: How to update model when done ng-change in Angularjs?
The two controls of the select type are in different scopes, so the id_district method of the Listaconselhos control is not recognized. With some changes it is possible to reach the desired result,…
-
0
votes2
answers4914
viewsA: How to get value from a form with Angularjs?
Here’s a 100% functional example of how you can rewind the data you entered via javascript. <!DOCTYPE html> <html> <script…
-
3
votes3
answers2845
viewsA: Image to byte[]
Try it the way below. Method responsible for converting an Image object to byte[]. public byte[] imageToByteArray(System.Drawing.Image imageIn) { MemoryStream ms = new MemoryStream();…
-
1
votes2
answers1410
viewsA: Remove all records from a table with Entity framework 6
You can use the Executestorequery() method of your context by passing an SQL command to delete all records, see the example below. seuContexto.ExecuteStoreQuery("delete SuaTabela"); For more details…
-
2
votes2
answers100
viewsA: What is the error in this regular expression?
The object window is overwriting the value entered in the text field, see line 16. var v = this; //Está instrução não faz muito sentido The object window does not have the function indexOf().…
javascriptanswered Carlos Lemos 324 -
4
votes2
answers303
viewsQ: How to use the same ZPL code on different dpi printers
Expensive, For some time I have been using Zebradesigner2 software to create ZPL labels for printing on Gc420t and I’m not having problems. Now I have to generate ZPL code for label printing using…
c#asked Carlos Lemos 324