|
Πρόσφατες Δημοσιεύσεις
-
I am happy to announce web support for the module discussed in Dashboards in the real world – A Scotland strike! Big thanks to Stephen Manderson for this additional contribution!. Installation Drag & drop from the VS toolbox. End Result Please use eXpand forums for your feedback and questions! p.s. : the module is released with eXpandFrameowork v13.1.7.6....
|
-
In this post I will demonstrate with a hands on demo how to localise your ASP.Net MVC applications. The most important thing to point out is that in this world we live in, we should expect our site to be visited by various people from different cultures and languages.So we must be prepared to have our site internationalised. Thankfully ASP.Net MVC simplifies the whole internationalisation/localisation process. I would like to talk about the Thread.CurrentCulture property that impacts formatting. That means that this property instructs the runtime how it should display strings e.g the currency in ($ or €) or how the date should be displayed. The other imporant property is Thread.CurrentUICulture which is used by the Resource Manager to look up culture-specific resources at run-time. I have installed VS 2012 Ultimate edition in my Windows 8 machine. Υou can use Visual Studio Express 2012 for Web . You can install Visual Studio Express 2012 for Web if you download Web Platform Installer .You can download this tool...
|
-
In this post I will demonstrate with a hands-on demo the importance of using patterns in an ASP.Net MVC application. I will use the Repository Pattern to create an additional abstract layer between my domain classes and the data layer. For a more formal definition, I will use the definition that Martin Fowler has given to his book "Patterns of Enterprise Application Architecture". "Repository Pattern mediates between the domain and the data mapping layers using a collection-like interface for accessing domain objects". Basically what that means is that it is a layer to separate our application from the data storage technology. It is a pattern for data access. I will explain more about this pattern as I build the application. First I will build a small ASP.Net MVC 4.0 EF Code first application without using the repository pattern and then I will rewrite my code leveraging that pattern. People who follow this blog have seen me in the past building an application first and then changing it a bit to demonstrate the...
|
-
In this post I will demonstrate with a hands-on example how to use the Fluent API to map POCO classes (set configurations) to SQL Server tables without using the set of conventions Entity Framework Code First expects. I will also give a short introduction to ASP.Net MVC and its main components. I will talk briefly about Entity Framework Code First , Database First and Model First . Also I will show you how to architecture properly your ASP.Net MVC 4.0 EF Code first application. We should not have our domain classes, data access classes and views,controllers in the same project. We should have them in 3 different projects. That way our code is more extensible , maintainable and easy to reuse in other non web applications that might need to consume or use EF Code first data access layer.We have a clear separation of concerns. We can configure our POCO classes with Data Annotations . By using Data Annotations we can configure our domain-entity classes so that they can take best advantage of the EF.We can decorate...
|
-
Σε αυτό το SQL Saturday Night θα δούμε το Microsoft Power Query (free add-in for Microsoft Excel 2010/2013) με το οποίο μπορούμε να συνδυάσουμε και να μετατρέψουμε δεδομένα από ποικίλες πηγές χωρίς να χρειάζεται να καταφύγουμε σε περίπλοκες ETL διαδικασίες χρησιμοποιώντας απλά το γνωστό UI του Excel. http://www.sqlschool.gr/SqlSaturdayNight/21/Content.aspx...
|
-
In this post I will provide a short introduction to Glimpse and why i think it is very important for any developer that builds ASP.Net sites (both Web Forms and MVC) to use it. I am building ASP.Net applications and I have started using it. Glimpse will show you valuable information about your ASP.Net application from within the browser. It will show you what is happening on the server where you ASP.Net application is hosted. I have posted a post on Page Inspector here . Page Inspector gives developers a very good/handy way to identify layout issues and to find out which part of server side code is responsible for that HTML snippet of code. A short definition of Glimpse is that it is a diagnostics platform for the web.Gives us an opportunity to glimpse on the server side of things and your asp.net applications. It gathers very detailed information and diagnostics about the behavior and execution of our ASP.Net application and then sends back this information. We can see for example what kind of code was executed...
|
-
In this rather short post I will be demonstrating with a hands-on example the usefulness of the Linq Zip operator. You can find more information on Linq expressions and operators (both in query and method syntax) in this post. I am going to use Visual Studio 2012 Ultimate edition ( Visual Studio 2012 Express for Web edition ) and I will create an ASP.Net 4.0 Web forms application I can use LINQ queries not only against databases but against arrays, since the array of strings/integers implement the IENumerable interface. Just to be absolutely clear you can query any form of data that implements the IENumerable interface. The Zip operator merges the corresponding elements of two sequences using a specified selector function. The Zip query operator was not included in LINQ. It was added later in .NET 4.0. 1) Fire up Visual Studio 2012 . 2) Create an empty web site. Give it the name of your choice.Choose C# as the development language. 3) Add a web form item to your site. Leave the default name. We will have two string...
|
-
In this blog post I will demonstrate with a hands-on example how to use EF Code First Workflow to create an entity data model, an .edmx file so I can visualise my POCO classes I will follow the steps that I created in this post . In that post I managed to create POCO classes without actually writing the classes myself, but I had EF taking care of that by pointing to the right database. Please note that what I am about to show will work just fine when one creates his own POCO classes. By that I mean is that you do not need to reverse engineer Code First classes from an existing database for the visualisation to work. You can create your POCO classes from scratch and still use Entity Framework Power Tools to create the .edmx file. I am going to re-create some of the steps of my other post in this one. I am running VS Studio 2012 Ultimate edition but you can use Visual Studio Express 2012 for Web . You can install Visual Studio Express 2012 for Web if you download Web Platform Installer .You can download this tool...
|
-
In this blog post I will try to explain with a hand-on demo how we can use Entity Framework Code first with an existing database. I will create the database and then I will use an ASP.Net MVC 4.0 application to demonstrate how to map Code First EF Workflow to the database. Before we start I will give again a short introduction to Entity Framework. The stable version of Entity Framework as we speak is EF 5.0 .It is available through Nuget and it is an open source project. The . Net framework provides support for Object Relational Mapping through EF . So EF is a an ORM tool and it is now the main data access technology that microsoft works on. I use it quite extensively in my projects. Through EF we have many things out of the box provided for us. We have the automatic generation of SQL code.It maps relational data to strongly types objects .All the changes made to the objects in the memory are persisted in a transactional way back to the data store. You can search in my blog, because I have posted many posts regarding...
|
-
XAF it’s a great platform simply because everything is pluggable and reusable! In this post I will demonstrate one more pluggable and reusable contribution – the MapView module from Sergej Derjabkin ! Scenario : We have a business object which has an Address property and we want to display them in Google maps. However we have no time to research or develop anything by ourselves. Step1 : Install the MapView module by drag & drop from the toolbox. Step2: Open Application Model editor to configure from where the module will take its data. This requires that we locate the Customer in the BOModel node and simply change the attributes as illustrated below. Step3 : To display the Customer Addresses, the MapView module provides the MapListEditor. Simply install the MapViewWebModule and assign the list editor to the Customer_ListView. Step4 : Run the XAF web app and see the results in the map! Bonus scenario: Display a detail view of the mapped address. Sergej Derjabkin also contributed webmaster detail functionality...
|
-
Using the next version 13.1.7.3 of eXpandFramework consider designing your shortcuts in a platform agnostic module because it will be possible to be used in your web apps as is! To enable the web shortcuts you need to install the XpandSystemAspNetModule. If you want to disable them you can use the model setting you see below. For this implementation I used the jwerty javascript library, however this library cannot detect successfully a few shortcuts used by the browser such as the Ctrl+N and the Ctrl+T. Therefore I added the CtrlNReplacement, CtrlTReplacement attributes you see in the image above. If you know a better library than jwerty that works better I can replace it at once. Let me know your feedback in eXpand forums please Happy XAF ’ing to all!...
|
-
The excellent E4037 example from DevExpress Code Central is integrated with our community project ( eXpandFramwork ) in version 13.1.7.1. Installation This functionality is embedded in the XpandSecurityWinModule/XpandSecurityWebModule depending on the platform you use. All eXpand modules are in the toolbox for fast Drag & Drop installation. Configuration The configuration for this feature as excepted can be found in the XAF Application Model options node under the Registration sub node as illustrated below. Attribute Enabled : Setting it to true two extra action Register and ForgotPassword will be activated in the Logon form as shown UserModelClass: Here we can configure the type of user that will be created EmailMember: This is a lookup of all members of UserModelClass and is only to save the email. RoleModelClass && RoleCriteria: Using those two attributes we can configure which roles will be assigned to the new registered user. Hope you find it useful and you have a lot of feedback...
|
-
Ανακοινώθηκε μια νέα ενημέρωση των SQL Server Development Tools (SSDT) με την οποία λύνονται θέματα που υπήρχαν όταν κάποιος δούλευε με το Schema Compare σε μεγάλο DPI ή με πολύ μεγάλo μέγεθος γραμματοσειράς στο pc του. Αυτή η έκδοση αντικαθιστά αυτή του Αυγούστου και περιέχει ακόμα μερικά bug fixes http://www.sqlschool.gr/SqlNews/135/Content.aspx...
|
-
Although XAF has many communication channels like the official support center , the XAF facebook site, the eXpand forums etc. apparently there is a need for a forum dedicated only to XAF where people can discuss anything XAF related without either the XAF or the eXpand team will interfere unless explicitly requested of course. So feel free to use this new forums I opened. XAF Only Forums...
|
-
I just came across a different behaviour between IE and Mozilla Firefox: scripts at the former seem to execute after the page has fully rendered, while the later they seem to execute when they’re met by the page parser or something like that. The HTML script tag has a defer attribute for running scripts after […]...
|
-
As explained near the end of https://ui.netbeans.org/docs/ui/code_folding/cf_uispec.html, the NetBeans IDE source code editor supports custom code folding tags for any language, like below (here defining the code folding tag in a Java comment, obviously need to use specific comment syntax for the respective language). // <editor-fold desc="isUserStudent"> —————————————- public static boolean isUserStudent(PortletRequest request) throws […]...
|
-
The WinJS.UI.ListView control is one of the most important in Window Store Applications. It is the basis of the application's UI and the one most familiar to users. In this post will explore the features/tweaks available for the control that are most needed to the developer when used. This post can serve as a cheatsheet to anyone wishing to use the WinJS.UI.ListView control in his applications. Adding a ListView, its Data Template, its Data Items and styling it In the part of the page you want the list to be displayed just add a div element with the data-win-control attribute set to WinJS.UI.ListView. <div id="demolistview" data-win-control="WinJS.UI.ListView"></div> The ListView by default will have a height of 400px and a width of 100%. Next, we need to add a data template for the list elements. This is done by creating a div element and setting its data-win-control attribute to WinJS.Binding.Template. Then we can use the data-win-bind attribute to bind to specific properties of the elements in the...
|
-
Right now in XAF it is possible to Clone an Application Model node by simply right click on it and choose Clone from the context menu. What will happen is that an identical node will be created. However by design, further modifications are not synchronized between mother-child nodes. I am going to demonstrate a different approach that does synchronize child nodes and you can find it in eXpandFramework 13.1.6.9 or later when using any module. In the next image we see two Application Model views , first the MDO_DetailView -the base node- and then the RDO_DetailView which its ModelClass.Type descents from the MDO_DetailView ModelClass.Type. In any Object View it is now possible to add MergeDifference items like the “ Everything MDO ” we see in the above picture. The Lookup datasource of the View attribute enumerates all views of the hierarchy chain of the current View.ModelClass.Type. For now, there are two Strategies (Everything and Only Layout). The merging algorithm will create a model node out of the differences...
|
-
Guide on Web applications testing....
|
-
-
Είναι γνωστό ότι μπορώ να έχω translations στα πεδία που έχω στα fact & dimension tables σε ένα OLAP Cube. Είναι μια εύκολη διαδικασία την οποία μπορώ να κάνω κατά το design του κύβου. Πώς μπορώ όμως να τα δω κατά την διάρκεια που βλέπω κάνω browse το κύβο μέσα από το Excel; Η απάντηση στο web cast αυτό… http://www.sqlschool.gr/blog/how-to-see-sql-server-olap-cube-transalations-in-a-excel-944.aspx...
|
-
This is my contribution to: http://stackoverflow.com/questions/303116/system-windows-threading-dispatcher-and-winforms Sometimes a Timer component is useful and easy to setup in WinForms, just set its interval and then enable it, then make sure the first thing you do in its Tick event handler is to disable itself. I think Timer runs the code in its own thread, so you […]...
|
-
This is my contribution to http://stackoverflow.com/questions/7178725/version-number-in-winform-form-text I’m using the following at the WinForm of the WebCapture tool I’m making for ClipFlair: public MainForm() { InitializeComponent(); Version version = Assembly.GetExecutingAssembly().GetName().Version; Text = Text + " " + version.Major + "." + version.Minor + " (build " + version.Build + ")"; //change form title } Not showing […]...
|
-
I’m trying to automate grabbing of activity screenshots from ClipFlair Activity Gallery, but most command-line screen capturing tools, like SiteShoter and IECapt fail to get an image from Silverlight content (they get just a background color). Some other opensource tool that I could tweek was ThumbPage, but that didn’t support command-line and needed to disable […]...
|
-
In this post I will provide a discussion on how to apply auditing configurations to your XAF applications, I will use the build-in XAF Audit Trail module and the eXpand Logic module for extending the XAF Application Model . Goal Our goal is to be able to declaratively configure auditing for different scenarios. For example apply an auditing configuration to a group of objects that fit in a criterion on a predefined group of views only when these views are shown in the main window. Background -The logic module The logic module provides the API we will use to extend the Application Model . In eXpand there are a few modules which use this API. For example three of them live in the ModeArtifactState module. In the next image we can see the structure of two of them the ConditionalAction and the ConditionalController. Bellow there is the third child of the ModelArtifactState module ObjectView structure. I want to draw your attention to the common attributes we see in both images. All they come from the...
|
|
|
|