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.
There’s a good news for you, there are a lot of Microsoft eBook can be download, I find them in Eric Ligman’s blog If you are interested, please go to below link for the details😁: Get the FREE eBook now!
When you use the Ajax call in ASP.NET MVC, you just can return a JSON object but not a file, if you want to do that, you need to create and save the file in server and return it’s path to Ajax, after that, you can call a redirect link for download the file, because this is a temp file, so you should need to delete it after download.
This is my first post! This is a coder blog, as you can see, I am a programmer (for ASP.NET), and I very like to share some technology for the people, so I am glad to create this site in MySharings.com 😀 I will share my skill experience in my blog, so if you are interested, you Read more