How to deploy asp.net core 2.0 to synology NAS
Introduction Synology NAS is a powerful NAS and it can support docker, so we can do a lot of things with it. If you want to deploy your asp.net core 2.0 to synology, that will be easy with docker.
Introduction Crystal reports is a best way for show reports in project and it’s also free, so we offen uses it in our project. But the crystal reports are base on webform, how about we use it in razor view in ASP.NET MVC? The point is use webform in mvc and call it by iframe 🙂
Introduction MiniProfiler is a useful tool for track the website performance and bugs, you can see how many times spent in each page, which queries are run, and any other custom timings you want to add, MiniProfiler helps you debug issues and optimize performance. MiniProfier has support many of kinds ORM framework, you can easy to find how to integrate in...
Introduction ASP.NET Identity is the new membership system for ASP.NET applications. ASP.NET Identity makes it really easy to customize profile and add Login/ LogOut functionality to the application. Please visit http://www.asp.net/identity to learn more on getting started with ASP.NET Identity and how you can add users and protect your websites using Roles
Introduction The ASP.NET exception is not user friendly, so we should create our custom exception handler, but for some situation, we maybe didn’t handle the error and user will see the ASP.NET build error. For this case, I will introduce how to handle all of the system exception(even you didn’t use try…catch), user will see the friendly error message.
Debian is a free operating system (OS) that comes with over 29000 packages, and below description is from the wiki: Debian (/ˈdɛbiən/ or /ˈdeɪbiən/)) is a Unix-like computer operating system that is composed entirely of free software, most of which is under the GNU General Public License and packaged by a group of individuals participating in the Debian Project. The Debian Project was first announced in 1993 by Ian Murdock, Debian...
ServiceStack.OrmLite is an Open Source, Fast, Simple, Typed ORM for .NET, the performance is better than EntityFramework and more flexible. You can find more detail in their GitHub site.
And in this article, I will show you how to do the code first with OrmLite and keep the data.
If you want to develop a web application which requires authentication or security features not included in the regular ASP.NET membership feature, you might decide to implement these features yourself. But it seems as if the first instinct of many ASP.NET MVC developers is to do this by customizing their Controllers, but I will share you a better way that uses an attribute for that. We can inherit a System.Web.Mvc.AuthorizeAttribute for do that. You can specifies that access to a controller or action method is restricted to users who meet the authorization requirement.
Under normal circumstances, we can use the schedule app for run our script or jobs in Synology NAS, but I found that seem not works when I set the schedule for execute by every hours(or mins…), so I have to set the cron job by myself with ssh login. I will show you how to set the cron job by command with ssh.