Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the mythemeshop domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/jshomoek/public_html/jshowers.com/wp-includes/functions.php on line 6131

Notice: Function register_sidebar was called incorrectly. No id was set in the arguments array for the "Header" sidebar. Defaulting to "sidebar-1". Manually set the id to "sidebar-1" to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/jshomoek/public_html/jshowers.com/wp-includes/functions.php on line 6131

Notice: Function register_sidebar was called incorrectly. No id was set in the arguments array for the "Sidebar" sidebar. Defaulting to "sidebar-2". Manually set the id to "sidebar-2" to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/jshomoek/public_html/jshowers.com/wp-includes/functions.php on line 6131

Deprecated: Function create_function() is deprecated in /home/jshomoek/public_html/jshowers.com/wp-content/themes/jshowers/functions.php on line 190

Deprecated: The called constructor method for WP_Widget class in mts_ad_widget is deprecated since version 4.3.0! Use __construct() instead. in /home/jshomoek/public_html/jshowers.com/wp-includes/functions.php on line 6131

Deprecated: The called constructor method for WP_Widget class in mts_ad_300_widget is deprecated since version 4.3.0! Use __construct() instead. in /home/jshomoek/public_html/jshowers.com/wp-includes/functions.php on line 6131

Deprecated: The called constructor method for WP_Widget class in Facebook_Like_Widget is deprecated since version 4.3.0! Use __construct() instead. in /home/jshomoek/public_html/jshowers.com/wp-includes/functions.php on line 6131

Deprecated: The called constructor method for WP_Widget class in mts_subscribe_widget is deprecated since version 4.3.0! Use __construct() instead. in /home/jshomoek/public_html/jshowers.com/wp-includes/functions.php on line 6131
C# .NET | Jasper Showers - Custom Web Development

C# .NET Archive

Creating a simple MiddlewareFilter using .NET Core 2.0 and dependency injection

A MiddlewareFilter is the perfect tool for creating conditional logic on MVC controllers or actions using .NET Core. It receives the Middleware benefits of natural dependency injection, and also can dip into the MVC pipeline. You can use it conditionally, see current MVC routes, and also short-circuit before the MVC action happens. Here is how to [&hellip

Read More…

Dynamic Routing In ASP.NET Web API

What is dynamic routing? The purpose of dynamic routing is to produce pretty, intuitive URLs on your website that help improve SEO and make your application look more professional. For example, if I own the site ferrets.com and have a database of the different breeds of ferrets, I could use dynamic routing to produce URLs [&hellip

Read More…

Implement Soft Deletes With Entity Framework’s Code First Approach

In order to maintain historical accuracy, data should not be truly deleted from a database. A soft delete can be used to signify a record is no longer valid, while persisting the data for any later use. Usually this is done by adding a “disabled” or “deleted” boolean column to each table on the database. [&hellip

Read More…

Yield: Understanding how ‘Yield’ works in the .NET Framework

I first noticed the yield keyword on some shared code at work about a year ago. Befuddled, I read MSDN’s description of the yield keyword a few times, yet I still didn’t completely understand it. In traffic law, the yield sign is defined as follows: A yield sign indicates that each driver must prepare to stop [&hellip

Read More…

Create Deep Copies Of Object In C# Using AutoMapper

A Quick Preface A shallow copy of an object is one that points to the same place in memory as the original. Any changes made to the copy also effect the original because the copy references the same place in memory as the original. (see accessing by reference) A deep copy of an object is one that [&hellip

Read More…