Καλώς ορίσατε στο dotNETZone.gr - Σύνδεση | Εγγραφή | Βοήθεια

 

Αρχική σελίδα Ιστολόγια Συζητήσεις Εκθέσεις Φωτογραφιών Αρχειοθήκες

Πρόσφατες Δημοσιεύσεις

  • Database Lifecycle Management (DLM)

    Για όλους εμάς που είμαστε data geeks και οι databases είναι τρόπος έκφρασης και ζωής αλλά και κάτι που όλοι χρησιμοποιούν είτε τους αρέσει είτε όχι έχουμε βασανιστεί πάμπολες φορές για το πώς να μεταφέρουμε αλλαγές από το development στο production αλλά και γενικότερα να έχουμε ένα db lifecycle management. more...
    08-02-2013, 02:59 από το μέλος Antonios Chatzipavlis στο Rocking with Knowledge for .NET programming
  • Domain Components+ Calculated properties + Application Model

    There is no official support for this scenario, however this does not mean that XAF is not designed with the highest standards. It means that we do not have docs and tests that can cover all possible combinations. However XAF is a flexible beast and we will go for supporting this case as short as possible. Domain Components With XAF it is possible to design business objects from interfaces! Given those interface DC with smart algorithms create concrete persistent class at runtime. It is possible to explore the DC dynamic assembly by overriding the in solution’s WinApplication descendant as shown: public partial class DynamicMemberAliases2WindowsFormsApplication : WinApplication {     protected override string GetDcAssemblyFilePath () {         return Path . Combine ( AppDomain . CurrentDomain . SetupInformation . ApplicationBase , DcAssemblyFileName );     } Exploring the DC assembly for the following DomainComponent1 [ DomainComponent ] public interface...
    05-02-2013, 12:32 από A.Bekiaris's .Net / XAF Blog στο A. Bekiaris's Blog
    Δημοσίευση στην κατηγορία: , ,
  • New SQL SysPrep support in SQL Server 2012 with SP1 CU2

    To Cumulative Update 2 του Service Pack 1 του SQL Server 2012 περιέχει αρκετές ευχάριστες εκπλήξεις. Ήδη σας έχω αναφέρει κάποιες και θα συνεχίσω και σε αυτό το post με ακόμα μία που έχει πιστεύω μεγάλη αξία ειδικά σε αυτούς που είναι φίλοι του virtualization. more...
    04-02-2013, 20:45 από το μέλος Antonios Chatzipavlis στο Rocking with Knowledge for .NET programming
  • Backup (and Restore) database to (from) the cloud?

    Αν πριν μερικά χρόνια κάποιος ήθελε να παίρνει backup την βάση του σε share network drive ίσως να τον λέγατε παρανοϊκό αλλά παρόλα αυτά μπορούσε εύκολα να γίνει. Αν όμως κάποιος σας έλεγε ότι ήθελε κάτι αντίστοιχο να γίνει σε κάποιο άλλο share αλλά σε άλλον γεωγραφικό τόπο εκεί τα πράγματα να γίνονταν λίγο δυσκολότερα. Αν τώρα κάποιος σας έλεγε ότι μπορεί πλέον να έχει παίρνεις backup αλλά και να κάνει restore στο cloud; more...
    31-01-2013, 00:59 από το μέλος Antonios Chatzipavlis στο Rocking with Knowledge for .NET programming
  • Dynamic member aliases from Application Model

    Although I promised to talk about Stephen Manderson ’s Dashboard module I will skip and I will provide a discussion on dynamic member aliases. The reason is that cross data source filtering provided by the Dashboard Suite does not permit aliases for our aggregated members. I already touched dynamic members subject at calculated members creation—Pros and Cons . However today we will go in details through all steps involved in creating member aliases through XAF ’s Application Model and as usual at the end of the post a sample will be available. In the following image you can see existing implementations from our community project eXpand as discussed in calculated members creation—Pros and Cons . In this post we are only interested in the RuntimeCalculatedMember entry., Extending the model Following our documentation to the letter ( How to: Extend the Application Model ) first we need to define and interface that will persist all parameters to the model. public interface IModelRuntimeCalculatedMember : IModelMember...
    29-01-2013, 06:34 από A.Bekiaris's .Net / XAF Blog στο A. Bekiaris's Blog
    Δημοσίευση στην κατηγορία: ,
  • TPC-VMS New Benchmark from TPC.ORG

    TPC-VMS is the first specification in the industry that enables comparison of performance workloads running enterprise database applications across several virtual machines, TPC-VMS references current TPC specifications and, as a result, offers the industry a rapid means of running and reporting performance metrics for virtualized environments more...
    27-01-2013, 23:04 από το μέλος Antonios Chatzipavlis στο Rocking with Knowledge for .NET programming
  • Creating tooltips using JQuery

    I have been using JQuery for a couple of years now and it has helped me to solve many problems on the client side of web development. You can find all my posts about JQuery in this link . In this post I will be providing you with a hands-on example on how to create a stylish tooltip using JQuery. In this hands-on example I will be using Expression Web 4.0.This application is not a free application. You can use any HTML editor you like.You can use Visual Studio 2012 Express edition. You can download it here . We need to download the latest version of JQuery. You can download it here . We will need some markup first.This is the sample HTML 5 page Type or (copy paste) the markup in your favorite HTML editor (VS, Expression Web,Notepad++) <!DOCTYPE html> <html lang="en"> <head> <title>Liverpool Legends</title> <script type="text/javascript" src="jquery-1.8.3.min.js"></script> <link rel="stylesheet" type="text/css" href="mystyle.css"> <script type="text/javascript"...
    27-01-2013, 01:03 από Nikolaos Kantzelis ASP.Net Blog στο Dot Net Rules
    Δημοσίευση στην κατηγορία: , , ,
  • LINQ-to-SQL και αρχιτεκτονική ASP.NET εφαρμογών

    Εκτός και αν πρόκειται για sample, prototype ή throw-away project τότε η αρχιτεκτονική μιας ASP.NET εφαρμογής είναι αυτή που φαίνεται στο παρακάτω σχήμα. Τα επίπεδα (layers) μπορούν να διαμορφωθούν ανάλογα με το μέγεθος της εφαρμογής. Για παράδειγμα, πιθανόν να υπάρχει χωριστό presentation layer (ανάμεσα στα Services και το UI) αρκεί η σχεδίαση να μην αποτελεί overkill για την κλίματα του έργου. Τα παραπάνω ακούγονται πολύ ωραία και ταιριάζουν με τις επιταγές της DDD μεθοδολογίας αλλά τι γίνεται όταν για το persistence επιλέγεται η LINQ-to-SQL; Στην συγκεκριμένη περίπτωση όχι μόνο έχουμε ένα ORM που λειτουργεί ως Repository αλλά γεννάται το ερώτημα αν πρέπει να εκμεταλλευτούμε το Object Model που παράγεται αυτόματα. Φαίνεται πως οι partial classes μπορούν να λειτουργήσουν και ως Domain Model. Για παράδειγμα, αν στο DataContext έχουμε το Customer entity, η εφαρμογή business logic κανόνων μπορεί να γίνει γράφοντας: 1: public partial class Customer 2: { 3: partial void OnValidate(ChangeAction action) 4: { 5: if (action...
    26-01-2013, 17:01 από το μέλος dpant στο Dim Pant's .NET Blog
    Δημοσίευση στην κατηγορία: , , ,
  • Looking into the various ways that content can be shared in a DotNetNuke site

    In this post I will demonstrate with a hands-on example the various ways content can be shared across many pages in a DotNetNuke site. I will continue writing posts about DotNetNuke because it is my favourite CMS,based on ASP.Net and I use it a lot. I have installed DNN 7.0 in a web server. You can see the default installation and site - http://dnn7.nopservices.com/ Bear in mind that this is the community edition of DotNetNuke 1) I am logging into my site as a host - power user. 2) I am going to add a Text/HTML module to the Home.aspx page. 3) I am navigating to Modules -> Add New Module . From the available modules I choose HTML module.This is the most commonly used module in DNN sites. We can add content, images, flash files into this module. 4) I am adding this module to the ContentPane of the Home page Have a look at the picture below 5) Now, that I have the module in my pane, I must add some content to it.I just click on the Edit Content Have a look at the picture below 6) I add some sample content (inside...
    25-01-2013, 21:20 από Nikolaos Kantzelis ASP.Net Blog στο Dot Net Rules
    Δημοσίευση στην κατηγορία: , , , ,
  • VMDepot is now integrated into the Windows Azure Portal

    A nice change I noticed today is that VMDepot images are now visible in the Windows Azure Portal. If you to Virtual Machines You’ll see an option that says “Browse VMDepot” If you click it, you get the list of the image already in the VM Depot:   You can select one and create a virtual [...]...
    25-01-2013, 16:19 από The PK Blog στο The PK blog
    Δημοσίευση στην κατηγορία: , ,
  • User friendly way to add permissions

    XAF ’ security system is really flexible and can easily address complex scenarios. Depending on the nature of our application (e.g. geek level of business users ) we may want to modify the default design to make it more user friendly! This will be a detailed discussion on all the steps involved in doing so. In addition a sample application is available for download at the end of the post. The goal is to create a user Role that will be able to Read and Navigate to predefined DashboardDefinition instances ( SecurityOperation.ReadOnly ). The DashboardDefinition   is a simple business object. If we had to use code we use a ModuleUpdater and the following snippet: public class Updater : ModuleUpdater {     public Updater ( IObjectSpace objectSpace, Version currentDBVersion) : base (objectSpace, currentDBVersion) { }     public override void UpdateDatabaseAfterUpdateSchema () {         base . UpdateDatabaseAfterUpdateSchema ();          ...
    25-01-2013, 06:03 από A.Bekiaris's .Net / XAF Blog στο A. Bekiaris's Blog
    Δημοσίευση στην κατηγορία: ,
  • If you need order in your query results, put in an ORDER BY.

    Έχει μαλλιάσει η γλώσσα μου χρόνια τώρα να λέω ότι στον SQL Server δεν υπάρχουν θέσφατα, αξιώματα και κανόνες. Υπάρχουν συνθήκες και με βάση αυτές και την γνώση της αρχιτεκτονικής του SQL Server (και για αυτό έχει μαλλιάσει η γλώσσα μου) μπορείς να δώσεις απαντήσεις και λύσεις σε ότι και να σου συμβεί. more...
    21-01-2013, 22:10 από το μέλος Antonios Chatzipavlis στο Rocking with Knowledge for .NET programming
  • Πως να χρησιμοποιήσετε το LINQPad

    Με το LINQPad μπορείτε να συνδεθείτε στη βάση δεδομένων, να εκτελέσετε LINQ queries γράφοντας τα σε lambda ή query syntax, να δείτε τα αντίστοιχα SQL statements  και φυσικά τα αποτελέσματά τους. Για παράδειγμα, το παρακάτω query φέρνει το πελατολόγιό μας με σειρά συχνότητας επισκέψεων (ο πιο συχνός πελάτης εμφανίζεται πρώτος) και κατόπιν αλφαβητική. Ως πελάτης θεωρείται οποιοσδήποτε μας έχει επισκεφτεί τουλάχιστον μια φορά. 1: from c in Customers 2: where c.Visits.Any(v => v.vid == 2) 3: orderby c.Visits.Count descending, c.lastname, c.firstname 4: select c Στο LINQPad δεν υπάρχει “DataContext”. Customers είναι το όνομα του πίνακα της βάσης με την οποία έχουμε συνδεθεί. Μετά την εκτέλεση του query, το LINQPad μας παρουσιάζει τα αποτελέσματα: Το αντίστοιχο lambda syntax: και το παραγόμενο SQL:   Εκτός από LINQ queries, στο LINQPad μπορείτε επίσης να εκτελέσετε οποιαδήποτε C#/VB έκφραση, εντολή ή πρόγραμμα καθώς και να δοκιμάσετε regular expressions (τα matches εμφανίζονται στο Results tab)....
    21-01-2013, 09:32 από το μέλος dpant στο Dim Pant's .NET Blog
    Δημοσίευση στην κατηγορία: ,
  • Modifying Business Objects using Attributes

    Very often there is a need to add new members to existing Business objects that live in assemblies that we do not own. Take the following example: We have a persistent object DashboardDefinition: public class DashboardDefinition : BaseObject {     public DashboardDefinition ( Session session)         : base (session) {     }     [ Association ( "Role-Dashboards" )]     public XPCollection < DevExpress . ExpressApp . Security . Strategy . SecuritySystemRole > Roles {         get {             return GetCollection < DevExpress . ExpressApp . Security . Strategy . SecuritySystemRole >( "Roles" );         }     } }   We want to create a many to many relation between DashboardDefinition and SecuritySystemRole objects. We already wrote the one part...
    21-01-2013, 06:34 από A.Bekiaris's .Net / XAF Blog στο A. Bekiaris's Blog
    Δημοσίευση στην κατηγορία: , ,
  • Removing DotNetNuke copyright message from a DNN site

    I have been using ASP.Net extensively to build web applications based on the .Net Framework. In this blog I have been demonstrating with hands-on examples how to use ASP.Net Web Forms and ASP.Net MVC to implement functionality commonly found on ASP.Net web sites. I have also used DotNetNuke - DNN (the Open Source Web Application Framework of my choice) to build websites.I am also the co-admin of the greek DotNetNuke community and I decided that I will use this space to write a series of posts regarding DotNetNuke. I have decided to keep those posts short. I will provide tips and tricks and answers to questions I often get when I teach about DotNetNuke in open seminars. I would like to introduce DotNetNuke to you before I move on.DotNetNuke is an Open Source Web Application Framework that is based on ASP.Net. It is ideal for creating and deploying projects such as: Commercial Web Sites Corporate Intranets and Extranets Online Publishing Portals Other Web Applications There are 3 DNN editions. DotNetNuke Professional...
    20-01-2013, 20:54 από Nikolaos Kantzelis ASP.Net Blog στο Dot Net Rules
    Δημοσίευση στην κατηγορία: , , ,
  • About SQL Server Updates

    Καθημερινά με ρωτάνε διάφορα για τον SQL Server. Kάποια είναι επαναλαμβανόμενα συχνότερα, κάποια άλλα όχι ή διατυπωμένα διαφορετικά, δεν έχει σημασία. Σήμερα όμως μου έκαναν μια ερώτηση που για περίεργο λόγο δεν με είχε ρωτήσει κανείς μέχρι τώρα. Η ερώτηση αυτή αφορούσε τα διάφορα updates που έχει ο SQL Server την συχνότητα αυτών αλλά και τι είναι το κάθε ένα από αυτά. more...
    19-01-2013, 00:55 από το μέλος Antonios Chatzipavlis στο Rocking with Knowledge for .NET programming
  • Windows 8 application Design Templates

    Good news to all developers working on windows 8 applications!! There are 50 “Store Ready” Read more...
    18-01-2013, 02:00 από Κ# on Cloud στο K#
    Δημοσίευση στην κατηγορία:
  • Dealing with error 1418 when trying to start a Database Mirroring session

    Κλασικό σφάλμα όταν προσπαθούμε να υλοποιήσουμε database mirroring χωρίς οι εμπλεκόμενοι SQL servers να είναι σε domain και τα services τους να ξεκινάνε με domain account καθώς θα πρέπει να γίνει δημιουργία του database mirroring με την χρήση certificates. more...
    16-01-2013, 11:48 από το μέλος Antonios Chatzipavlis στο Rocking with Knowledge for .NET programming
  • LINQ Pocket Reference (και LINQPad)

    Μιας και η χρονιά ξεκίνησε με παρουσίαση βιβλίου , ενας πολύ καλός οδηγός τσέπης είναι το LINQ Pocket Reference (εκδόσεις O'Reilly). Ιδιαίτερο ενδιαφέρον έχει το πρώτο μέρος του οδηγού που εξηγεί βασικές έννοιες όπως το deferred execution, iterator chaining και lamda expressions type inference. Πολύ ακριβής και η αναφορά στις διαφορές ανάμεσα στα local και interpreted queries καθώς, στα subqueries και φυσικά στη LINQ to SQL. Ο υπόλοιπος οδηγός παρουσιάζει τους query operators ομαδοποιημένους ανάλογα με την λειτουργία τους (filtering, projecting, ordering κοκ). Για κάθε operator δίνεται τόσο το lamdba όσο και το query syntax. Είναι γνωστό στη κοινότητα οτι όσο μεγάλη ευκολία και εξοικονόμηση χρόνου παρέχει η LINQ άλλο τόσο εύκολη είναι η δημιουργία σπάταλων, μη αποδοτικών queries που μεταφράζονται σε τερατώδη SQL statements. Πιστεύω πως η ανάγνωση του πρώτου μέρους του οδηγού αντιμετωπίζει αποτελεσματικά ακριβώς αυτό το πρόβλημα. Τέλος, ο οδηγός "συνοδεύεται" από το LINQPad , ένα δωρεάν εργαλείο με το οποίο μπορούμε...
    16-01-2013, 08:45 από το μέλος dpant στο Dim Pant's .NET Blog
    Δημοσίευση στην κατηγορία: , ,
  • How to rule the Pivot

    To configure our code we can simply use interfaces as parameters. XAF design is based on interfacesrefore it features amazing technologies like the Application Model and Domain Components which make available what no other framework offers (eg multiple inheritance, flexible design, no match in reusability, etc.). The Application Model for example describes all parts of a business application and can be further extended using interfaces. So, our code should simply query the values of these Application Model interfaces and operate accordingly. Let’s name these interfaces Rules and let’s try first to get a taste of existing implementations and then discuss a Pivot control ruling concept. Note here that instead of a Pivot it be any control, our goal is to describe behaviors in XAF’s Application Model, then implement them in a Controller and simply copy paste this controller to any project! All the code needed for today’s discussion can be found in XVideoRental demo in Common.Win project under the NameSpaces: Common.Win.ModelAdapter,...
    16-01-2013, 07:25 από A.Bekiaris's .Net / XAF Blog στο A. Bekiaris's Blog
    Δημοσίευση στην κατηγορία: , ,
  • ASP.NET Design Patterns (Καλή Χρονιά, 2013)

    Καλή Χρονιά σε όλους και όλες. Λίγο πρίν το ξεκίνημα της νέας χρονιάς έπεσε στα χέρια μου το Professional ASP.NET Design Patterns (εκδόσεις Wrox). Αν και λίγο παλιό, πολύ ενδιαφέρον, γεμάτο παραδείγματα και sample code. Το τρίτο μέρος του βιβλίου παρουσιάζει ως case study ένα πλήρως λειτουργικό eshop. Για την υλοποίηση του χρησιμοποιούνται φυσικά όλα τα design principles, patterns και οι τεχνολογίες (StructureMap, NHibernate, AutoMapper, GoF patterns, S.O.L.I.D, MVP, MVC, Unit Of Work, Query Object, Active Record κ.α.) που παρουσιάζονται στα υπόλοιπα κεφάλαια του βιβλίου. Έμφαση δίνεται στη Domain Driven Design (DDD) μεθοδολογία. Ανάμεσα σ' όλα, αναφέρεται και το κλασσικό ASPX code behind μοντέλο ως Page Controller pattern H αρχιτεκτονική που προτείνεται για τη δημιουργία μεγάλων asp.net έργων είναι συγκεκριμμένη και ακολουθείτε σε όλο το βιβλίο. Κάθε layer (Model, Domain, Infrastructure, Service, Repository, Presentation, UI) παρουσιάζεται σταδιακά και όλα μαζί "δένουν" στο case study. Κάτα τη γνώμη μου, η προσέγγιση...
    14-01-2013, 09:10 από το μέλος dpant στο Dim Pant's .NET Blog
    Δημοσίευση στην κατηγορία: ,
  • AlwaysOn Availability Groups Vs Database Mirroring

    Ποιο θεωρείς ότι είναι το μεγαλύτερο ατού των AlwaysOn Availability Groups; Για μένα ήταν οι πολλαπλές replicas και το ότι μπορείς να τρέχεις OLTP jobs στην primary και reporting στις secondaries. Μετά όμως άρχισα να καταλαβαίνω ότι αυτό μπορούσες να το υλοποιήσεις και πριν τον 2012 με το database mirroring και manual configuration του backup ή reporting στους secondaries. Άρα; Υπάρχει κάποιο αυτόματο brokering ή απλά γλυτώνει ο administrator άπειρο χρόνο σε ρυθμίσεις και στο να είναι σίγουρος ότι αυτό που έστησε δουλεύει; more...
    13-01-2013, 17:31 από το μέλος Antonios Chatzipavlis στο Rocking with Knowledge for .NET programming
  • MVVM in Windows 8 apps

    Having implemented Meteo and Zougla apps for windows 8 using MVVM Light I found that Read more...
    13-01-2013, 17:01 από Κ# on Cloud στο K#
    Δημοσίευση στην κατηγορία:
  • Looking into the ASP.Net Web API - part 2

    This is the second post discussing the ASP.Net Web API . I will continue building a small ASP.Net MVC 4.0 application that I started implementing in my last post. You can have a look at the first post here . In this hands-on example I will show you how to create new footballer items,update a new footballer item,delete a new footballer item. I will also refactor the implementation for the GET operations-methods from my last post.I will present you with a full CRUD hands-on example. This will be based in the RESTful WEB API paradigm and its four main HTTP methods. GET will retrieve the footballer items from the specified URI. PUT updates a resource (footballer item) at a specified URI. POST will create a new resource (footballer item). DELETE will delete a resource (footballer item) at a specified URI. Let's move on to actually building the application. 1) Launch Visual Studio , I have named my application "WebApi", and open the application. 2) As I said earlier I will refactor the code I created in the first post....
    12-01-2013, 17:52 από Nikolaos Kantzelis ASP.Net Blog στο Dot Net Rules
    Δημοσίευση στην κατηγορία: , , , , , , ,
  • Windows Azure and VM Depot from MS Open Tech

    VM Depot allows users to build, deploy and share their favorite Linux configuration, create custom open source stacks, work with others and build new architectures for the cloud that leverage the openness and flexibility of the Azure platform. How it works All images shared via this catalog are open for interaction where other users of [...]...
    10-01-2013, 21:58 από The PK Blog στο The PK blog
    Δημοσίευση στην κατηγορία: , ,
Περισσότερες Δημοσιεύσεις « Προηγούμενη - Επόμενη »
Με χρήση του Community Server (Commercial Edition), από την Telligent Systems