Author Archives: Sorin Dolha

About Sorin Dolha

My passion is software development, but I also like physics.

Platform selection

Want to develop apps? You need to decide whether you want to do it for a single platform or more, and in the latter case whether or not to use a cross-platform framework. The table below may help, but you’ll … Continue reading

Posted in Development | Tagged , , , , , | Leave a comment

Mocking Entity Framework to unit test your data services

It’s not easy to write unit tests for services that use DbContext and DbSet<T> classes from Entity Framework (or Entity Framework Core), and there are complex solutions to approach this, like separating the data access layer completely, as I propose in my UnitOfWork-EntityFramework implementation. … Continue reading

Posted in Architecture, C# | Tagged , , , , , , | Leave a comment

Stop over-abstracting

Because developers are usually highly intelligent, they are very good when it comes to abstracting things, be this: 1) generating base or generic classes to inherit from or reuse; 2) generic or overloaded functions called with arguments instead of standalone ones; or 3) reusing code … Continue reading

Posted in Architecture | Tagged , , , , , , | Leave a comment

Enabling Entity Framework Core 1.1 tools

After I created an ASP .NET Core 1.1 project (Console app) with Visual Studio 2017 to develop a new WebAPI, I wanted to add support for EntityFrameworkCore. Everything was OK, except for the Tools.DotNet package, which I couldn’t add with … Continue reading

Posted in .NET, ASP .NET, Miscellaneous, WebAPI | Tagged , , | Leave a comment

FileUpload in UpdatePanel

Want to include a FileUpload in UploadPanel using Ajax-enabled ASP .NET WebForms? You need to do two things: Set encoding type to the form element to multi-part: <form … enctype=”multipart/form-data”> Add a non-async postback trigger on the UpdatePanel for the button that … Continue reading

Posted in ASP .NET | Tagged , , , , | Leave a comment

Want to learn WPF? Get a book

Originally posted on Sorin Dolha's Blog:
I’ve said it before. In my opinion, WPF is the single contemporary programming technology (disclaimer: among those that I’ve considered myself) that really requires a book to learn it. Otherwise, trying to dig…

Posted in WPF | Tagged , , | Leave a comment

Features, stories, tasks: status info, hour reporting, and commits

I wrote some time ago about how you can manage a fixed priced project lifetime with Visual Studio online. There I mentioned that status of tasks should be migrated to the upper levels of user stories and features like this … Continue reading

Posted in Development | Tagged , , , , , , , | Leave a comment