How to handle invalid data when parsing Excel sheets in OleDB?
Reddit » C# programming language
by /u/Willy988
6h ago
So I’ve got my application running and the boss approved it, but there’s a small bug and I haven’t figured out what to do. We take accountant excel sheets and parse it into the database. The problem is when an invalid/unexpected data type comes in from the sheet, it’s parsed as a DBNull value. Think about it like this: if someone copies and pastes “123 “ instead of “123” from somewhere, it’s a string automatically instead of being a numerical type as the column expects…. submitted by /u/Willy988 [visit reddit] [comments ..read more
Visit website
Storing data locally, security and questions about multiplatform apps
Reddit » C# programming language
by /u/Pod__042
6h ago
Hi guys, so, i'm writing a Blazor server app and a Maui blazor app, both consumes 2 libraries (C#, Razor) that contain all the UI and the code, so it rans on web, desktop and mobile... As i was progressing, i reached i moment that i needed to think about how the data will be stored locally, i already have the repositories, dtos and services to do the work and even though most of the data will be on a remote server, i would like to store some data locally, mostly configuration and login stuff the idea is to be able to use the app offline with at least the app theme, some of the loaded data fro ..read more
Visit website
Figma for frontend for my asp.net project
Reddit » C# programming language
by /u/Tough_Negotiation_82
6h ago
Using figma to design frontend and then c# for the backend because my frontend skill is not good. What is your advice? I honestly just need your opinion submitted by /u/Tough_Negotiation_82 [visit reddit] [comments ..read more
Visit website
Will my experience with ASP.Net WebForms ruin my future job prospects?
Reddit » C# programming language
by /u/Icmolreulf
6h ago
I've been working at a manufacturing company for the better part of two years as my first job as a developer. I like this job, but I intend to leave it later this year for a better one as I'll have experience and will be more hireable. 2 years of full stack development with C# and T-SQL certainly isn't a bad thing starting out (at least I don't think so). There is a massive problem with this job however: The vast majority of my experience at this job is with ASP.Net WebForms... 20 year old technology. I've gained a lot of professional experience. I have made some good references. I've learned ..read more
Visit website
Is there any reason to not to use the first option over the second one?
Reddit » C# programming language
by /u/lexesm
6h ago
Console.WriteLine($"Hello my name is {name}, I am {age} years old! I'm a {job}!"); Console.WriteLine("Hello my name is " + name + ", I am " + age + " years old! I'm a " + job + "!"); submitted by /u/lexesm [visit reddit] [comments ..read more
Visit website
Simple but great example of how MVUX shines by its simplicity
Reddit » C# programming language
by /u/Shnupaquia
6h ago
Sample: https://github.com/unoplatform/Uno.Samples/tree/master/UI/ChatGPT submitted by /u/Shnupaquia [visit reddit] [comments ..read more
Visit website
What's the recommended way to convert a C struct (from Rust, in my case) into C# struct?
Reddit » C# programming language
by /u/seanballais
14h ago
I'm working on a personal project that uses Rust for the core functionalities, compiled to a library, with C# using this library. Rust Land In Rust, I have a struct called TaskStatus. It is defined as: pub struct TaskStatus { pub num_read_bytes: usize, pub num_written_bytes: usize, pub should_stop: bool, pub last_error: *const c_char, pub progress: TaskProgress } I also have an FFI function in Rust that returns this struct. It is defined as: #[no_mangle] pub extern "C" fn get_task_status(ptr: *mut TaskID) -> *mut TaskStatus { ... } And another FFI function for dropping TaskStatus ..read more
Visit website
Preprocessor Question
Reddit » C# programming language
by /u/CodingWithPizza
14h ago
This isn't a problem, necessarily, more of a matter of curiosity... Why doesn't C# allow #define to be used as follows:- #define DEFAULT_INDEX 3 ... ... var startIndex = DEFAULT_INDEX; Instead, unless I'm missing something, we have to define a constant for this. Is there a way to replicate this? submitted by /u/CodingWithPizza [visit reddit] [comments ..read more
Visit website
How to perform Integration Testing in ASP.NET Core
Reddit » C# programming language
by /u/myotcworld
14h ago
submitted by /u/myotcworld [visit reddit] [comments ..read more
Visit website
LocalDB - Visual Studio
Reddit » C# programming language
by /u/tasshu
14h ago
Hello All, Could someone please save me from this headache. I'm currently learning C# and still very new and I'm trying to do a localDB but I'm having difficulty (unfortunately I've even gone to ChatGPT for help and still struggling) I don't want people to have to create a database to store files so figured localdb is best. The software I'm building is simple: You can import a .txt file or .sql file with a button which will import into the localDB and then you can retrieve the file when required. Steps so far: I've created the software how I want and gone to Add > Data > Service-based ..read more
Visit website

Follow Reddit » C# programming language on FeedSpot

Continue with Google
Continue with Apple
OR