|
Πρόσφατες Δημοσιεύσεις
-
In this tutorial we are going to create a simple ASP.NET 5 web application on Mac, use SignalR to push events from server to connected clients and then deploy to Azure through a git repository. What is ASP.NET 5? ASP.NET 5 is a new open-source and cross-platform framework for building modern cloud-based Web applications using .NET. It consists of modular components with minimal......
|
-
DevExpress released in v15.2.9 an ASP.NET Dashboard Designer ( Online Demo ). Following eXpandFramework with v15.2.9.3 releases an update to the existing integration of the dashboard suite . Windows In the existing windows implementation the end user can use the UI to create a DashboardDefinition , assign a few Business object types as datasources and execute the Edit Dashboard action to run the Designer . Web Similarly the end user need to perform the same actions to run the ASP.NET dashboard designer and create dashboard over the existing Business Object domain. As you can see from the images above the eXpandFramework Dashboard module utilize security and syntax highlight editors integrations . The highlight for the win platform is done with the help of DevExpress XtraRichEdit control and for the web with the help of ACE cloud9 editor . For those of you interested in the XtraDashboardTester solution you can find and run the related Easytests for the module. Basically the ASP.NET dashboard designer...
|
-
Today, I feel quite relieved. The reason? Yesterday, I organised my first big event in Athens, Greece, part of a much bigger event called Global Azure Bootcamp 2016, with the help of a very good friend of mine Kostas Pantos. What is Global Azure Bootcamp? In brief, it’s one day deep dive class to help thousands of people get up to speed......
|
-
Shortened URLs have slowly turned into one of the latest trends. Even though it's been about 15 years they've been helping people having difficulty with limited character messaging applications and SMS, social networks sharing such limitations have caused some major increment in their use. We are going to see what shortened URLs are, and how we can create our own, using goo.gl API. What is a shortened URL? A shortened URL is a URL that redirects to the same address as the one requested. For example you can use goo.gl (Google's URL shortener service) to create a shortened URL by visiting https://goo.gl/ and placing the URL you want to shorten. If you place http://dotnethints.com/ you get http://goo.gl/5nIcLC. Now, if you hit that new address on your browser you will head to that URL shortener's company site. The original URL will be found and you will be automatically redirected to your destination. Keep in mind that shortened URLs are supposed to last forever. So, we may use shortened...
|
-
It’s been quite some time since I had the chance to speak publicly and I Read more...
|
-
When running many services at large scale, you rely very heavily on telemetry to help Read more...
|
-
-
In this post I will article shows you how to build a simple web application in ASP.NET MVC 6 & Entity Framework 7 using ASP.NET 5-ASP.Net Core. I will also demonstrate some new concepts in ASP.Net 5.0 and highlight important changes. If you are new to ASP.Net 5.0 and MVC 6.0 then please have a look at this introductory post of mine, here . If you want to learn ASP.Ne 5.0 by video there is a great introductory course by Scott Hanselman in this link . You can developer ASP.Net 5.0 applications without Visual Studio and outside Windows. I will use Visual Studio 2015 in this post.Any edition will work. To those people who do not have access to Visual Studio 2015, please note that Visual Studio 2015 has a community edition which is available for free.Please check the licensing of this edition though You can download it here . You also need to download ASP.Net 5.0 . Please note that ASP.NET 5 is not included in the installation of Visual Studio 2015. This will probably change in the fucture. Before diving into our...
|
-
WebJobs is a feature of the Azure App Service that enables you to run a program or a script, continuously, either based on a specific schedule or on demand, in the same context as a web app, API app, or mobile app. WebJobs SDK provides triggers, which comprise the conditions that cause the function to be called, and binders, that comprise the way......
|
-
A MIME type is a two-part identifier for file formats and format contents transmitted on the Internet. It consists of a type, a sub-type and optional parameters. When publishing a new website in Azure WebSites, you may find out that not all file types can be served without some prior configuration. For example, if your site needs to serve custom fonts, either for icons......
|
-
This is the second post in a series of posts regarding passing multiple models in a view.You can find the first one here We do know that in any MVC application we cannot pass multiple models from a controller to a single view. In this post I will provide you with a workaround for passing multiple models in a single view in MVC. In object-oriented and functional programming, an immutable object is an object whose state cannot be modified after it is created. A Tuple object is an immutable, fixed-size and ordered sequence object. It is a data structure that has a specific number and sequence of elements. The .NET framework supports tuples up to seven elements. Strings and other concrete objects are typically expressed as immutable objects to improve readability and runtime efficiency in object-oriented programming. I am going to use EF as my data access layer. More specifically I will use the Database First approach in EF. Entity Framework is an object-relational mapping (ORM) framework for the .NET Framework. EF...
|
-
We do know that in any MVC applicatin we cannot pass multiple models from a controller to a single view. In this post I will provide you with a workaround for passing multiple models in a single view in MVC. There are several approaches to achieve this but I will use the List<object> and the object object. I am going to use EF as my data access layer. More specifically I will use the Database First approach in EF. Entity Framework is an object-relational mapping (ORM) framework for the .NET Framework. EF addresses the problem of Object-relational impedance mismatch . I will not be talking about that mismatch because it is well documented in many sites on the Internet. Through that framework we can program against a conceptual application model instead of programming directly against a relational schema-model . 1) I will create an empty ASP.Net Application (Empty MVC applicatin) and I give it the name . I am using Visual Studio 2015 Enterprise edition, C# 5.0 and EF 5.0 version. 2) I will use the AdventureWorksLT2012...
|
-
A custom validation attribute allows you to create metadata, that you can use in the data model to validate data fields. In order to validate when a collection is null or empty, you may create a custom validation attribute, which returns false in case the object is null or empty. [crayon-56d4b8aa38fbd868986865/] You can now decorate classes using this attribute, i.e.: [crayon-56d4b8aa38ff3854591558/] Let’s assume that you have a WebAPI method test/validation, which:......
|
-
In this post I am going to provide you with a hands on example on how to handle concurrency in an EF Code First ASP.Net MVC 5.0 application. Basically I want to show you how to handle conflicts when multiple users update the same entity at the same time . You can find another post regarding concurrency with EF Database First and web forms here . When we are talking about concurrency in an application where EF acts as the data access layer, our main focus is how to make sure that the integrity of the data in the database is ensured in a multi user connected environment . Databases are very good in managing concurrent users. All the objects/entities are retrieved from the datastore into the memory. The changes we make are applied in the memory and then we flush the changes to the database. But what happens if those entities have been changed from another user in the time it took us to update them in memory?Well someone will say, "Dude, you just have to use pessimistic concurrency and your problems are solved." Well,...
|
-
In this post I am going to provide you with a hands on example on using caching in an ASP.Net MVC 5.0 application using Visual Studio 2015 and C# . More particularly I'll show you how to use the underlying ASP.net caching engine to improve the performance of an application. There is a number of different cache settings you can use.These settings are all available from the underlying ASP.net cache engine. It's the same engine that Web Forms uses. It's not something that's specific to just the MVC framework. But first things first. What is caching why do we need caching in the first place? Caching is of vital significance in any high-performance web application. Caching provides a way of storing frequently accessed data and reusing that data . It is an effective way for improving web application’s performance and user experience. The main advantages of caching include: Reduce network traffic - Content is cached at the client side, thus reducing network traffic Reduce database server round trips -Content that...
|
-
Working as a developer I have created quite a lot of objects. Most of them were unique. There were some of them, however, that were created by copying already existing objects. C# provides us with a few techniques to accomplish this, keeping in mind whether we want to create a copy that keeps all data the prototype had, or how to deal with the referenced types contained within that object. Shallow and deep copies A way to understand things better is to create a class called Book. What we're going to do, is try to copy Book objects. Here's the class. public class Book { public string Name { get ; set ; } public double Price { get ; set ; } public Writer Author { get ; set ; } public Book ( string name, double price, Writer author) { Name = name; Price = price; ...
|
-
Windows PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language, built on the .NET Framework. You can search for it, using Windows Search, but probably you already have it installed on your computer. On top of the standard command-line shell, you can also find the Windows PowerShell ISE, which......
|
-
I once told a friend of mine that programming is much like chess. In some cases it is; for example when you know where you want to get but there are so many paths to follow. Choosing between fields, properties and methods when you want to store a value temporarily or retrieve it, can be described as some of these scenarios. There was a time I created a class and wanted to store some data, but I was not sure which was the best way to do it. Should I create a simple private variable where I would store the value, use a property and some extra auxiliary variable, or instead avoid getters and setters and use nothing more than a method? Since there may be some developers out there sometimes confused with such questions, I thought of writing an article about it. Is there a problem at all? To get started, let's create a class called MartialArtist which holds a single important piece of information: the martial artist's name. Here's the code. public class MartialArtist { ...
|
-
Azure Blob Storage is part of the Microsoft Azure Storage service, providing a relatively low cost service for storing large amounts of unstructured data, such as text or blobs; “blobs” stands for Binary Large Objects. A blob is a collection of binary data stored as a single entity. It typically comprises images, audio, or any other file. In this tutorial,......
|
-
-
-
-
-
As a developer you’re probably familiar with the pain of troubleshooting web applications. In Azure App Read more...
|
-
When you create an Azure website, you are automatically provided with a production slot that represents your live website. In addition, with each deployment slot, you are eligible to create up to four additional deployment slots that you may swap with the production slot or with the other non-production slots. Having this option, you can create more robust deployment workflows than just deploying your......
|
|
|
|