Search results for query: *

  • Users: cjard
  • Order by date
  1. cjard

    There is exe developed in C# Windows. Run this on Linux.

    Actually, that's not quite accurate. I've no problems compiling net (core) apps on my windows machine, transferring the output to my raspberry Pi or Mac and launching it. The process is slightly different in that one doesn't run the .exe on the nix box but instead the .dll On windows...
  2. cjard

    Unit of work pattern, with EF Core

    You asked this on stackoverflow too. Heed what jmcilhinney said there..
  3. cjard

    Question Cast string to byte array

    So use one of the methods that reads bytes, such as Read(byte[], int, int) You're using the wrong tool for the job, a tool that interprets the data and now you're trying to uninterpret the data. Dont try to unbake a cake, avoid baking it in the first place
  4. cjard

    System.Data.SqlClient.SqlException:

    Is the shared memory provider enabled? https://webfiles-sc1.blackbaud.com/files/support/infinityinstaller/content/installermaster/tkenablenamedpipesandtcpipconnections.htm Enable TCP and use that instead
  5. cjard

    Question No serial port in Toolbox

    .NET 8 is not a "3.2 versions more advanced" successor to .NET Framework 4.8 First there was "widnows only" framework up to 4.6, then "linux too" .net core 1.0 became a thing. The two proceeded in parallel, with a focus on core, which rapidly advanced through the versions and dropped the "core"...
  6. cjard

    Trying to access a Microsoft List programmatically using C#

    Careful, 400 != 404 Not possible in this forum software, check again?
  7. cjard

    Exception issue

    Did you make a razor/blazor project and copy/paste the index page, maybe even rename it, but forgot to change the `@page "/" ` directive at the top of the markup? Newer Blazor is more helpful with its error messages:
  8. cjard

    Resolved Can the ad settings be tweaked?

    I thought all tech jobs in the USA were insanely well paid?!
  9. cjard

    Encrypt sensitive information in SQL Server database

    It doesn't really make sense, unless you're going to keep something in your head and enter it into the program regularly - someone breaks into your network and downloads your DB; oh no! That have your passwords! But fortunately you encrypted the column in the DB so all they got is garbage, and...
  10. cjard

    Question Where to start practicing?

    If "practical" applications interest you, some challenge site like CodeWars. You can ask ChatGPT to translate from code you know in another language, and you can ask it why code doesn't work etc. it's actually quite a patient teacher if you ask the right questions and doesn't often get basic...
  11. cjard

    Add 3 DataTable type data to 3 sheets each and save as csv file.

    Or just use a nuget package like EPPlus that can save a dataset (multiple tables) to an XLSX (multiple sheets) As mentioned, CSV don't have multiple sheets, but if you can provide me with a CSV that renders as multiple sheets when opened in excel, then I'll write you the code that creates it. I...
  12. cjard

    I have a question about Re-Entering Try Catch

    Yes, but.. OP can't work out Console.ReadLine and you're recommending generics?
  13. cjard

    I want to add an if else statement below the where statement.

    Looks to me like your life would be a lot easier if you just passed DateTime.MinValue for @startDate instead of NULL, DateTime.MaxValue for @endDate, instead of NULL Baking hardcoded values into your code is a silly idea that creates an ongoing maintenance headache Performing conversions on...
  14. cjard

    foreach statement not running

    And what might be a second, more cheaty way to do it? Well remember I said that you can use any SQL that returns any data so long as the columns are matched? Slight tweak; I'm reasonably certain (it's been a long time) you can return a subset of columns so long as the names match and the columns...
  15. cjard

    foreach statement not running

    Hopefully now that you understand all that, we can take a look at your actual requirements. So it seems you're searching the operation table for a job id and you want to add on just one bit of info from the Delivery table. There are plenty of ways to skin this cat. Perhaps the first...
  16. cjard

    foreach statement not running

    The next thing I want to talk about is your Fill commands You've probably created your datatables and table adapters by giving a query of "SELECT * FROM Job" or similar.. You seldom, if ever, want to do this. I typically make the first query (the one that defines the table adapter and the...
  17. cjard

    foreach statement not running

    Noo... you've ended up getting it all wrong. You put all that effort into making a strongly typed datatable, and you've even filled it with a table adapter like you should.. ..and then you've looped through it as though it's a weakly typed, plain DataTable. If you take away nothing else from...
  18. cjard

    Question Process VS Program -- which is best for this task?

    PEBKAC for implementing it with brain deactivated then!
  19. cjard

    Why do some C# applications have an app.config file and others do not?

    Above, net 7 (core derived), Below net framework 4.8 (and guess what happens when you hit "Create or open", add a setting and build...) Side note, WinForms in .net core derivatives can be a miserable experience; I'd still use netFW for WF unless there was some massively compelling...
  20. cjard

    Question Process VS Program -- which is best for this task?

    Way more work than asking ChatGPT for a leg up on writing an outlook plugin that examines arriving mail
Back
Top Bottom