Xaf Exception Stack Explorer
10 Ιουνίου 09 09:07 μμ | tolisss | 0 σχόλια   
Xaf has its own tracking system enabled by default . What it does? It tracks almost every from exception to button clicks and object states!! What I want to saw you is how easy we can create a CodeRush addin that every time an exception occurs we could navigate through all the stack trace We will accomplish that using Resharper’s stackTraceExplorer . So all we need to do is to find startup project’s bin directory open expressAppFramework.log which is the file that Xaf writes all traces, find the last entry, copy it to memory and send to Visual studio a Resharper+ExploreStackTrace command Lets do it. In fact we can easily extend the plugins project I posted here and have all in one package. But we have to be careful when trying to read a log file cause it may

Διαβάστε περισσότερα »

Δημοσίευση στην κατηγορία: , , , ,
CodeRush plugins for Xaf
04 Ιουνίου 09 08:42 μμ | tolisss | 0 σχόλια   
Download sources (10/6/09) (see Xaf Exception Stack Explorer ) ProjectConverter Browsing and downloading from Devexpress support center often I find old projects with broken references Old days when i see broken references at my solution due to version changes I had to go to my C:\Program files\pathToYourProjectConverter executable. Open it, browse to find my solution folder and convert it Nowadays I am using a small CodeRush addin I wrote and I can convert any solution from with in Visual Studio By pressing a shortcut. You have to configure it by setting its path as shown in the image bellow if you use a recompile version of the assemblies you can also set at the PublicToken field Then you go to shortcuts and assign a shortcut key for the convertProject command

Διαβάστε περισσότερα »

Δημοσίευση στην κατηγορία: , , , ,
Multiple inheritance for .Net is here!!!
03 Ιουνίου 09 05:46 μμ | tolisss | 0 σχόλια   
I though i should post on this one cause its far more than interesting suppose you have a Customer that is a Person public class Person { public string Name { get; set; } } public class Customer : Person { } and implements 2 interfaces ICustomUser,ICustomer public interface ICustomUser { string Title { get; set; } } public interface ICustomer { string Title { get; set; } } one could write public class Customer : Person,ICustomUser,ICustomer { string ICustomUser.Title { get; set; } string ICustomer.Title { get; set; } } But in order to access the values of the properties Customer should be extended to something like public class Customer : Person,ICustomUser,ICustomer { private string customUserTitle; public string CustomUserTitle { get { return customUserTitle;

Διαβάστε περισσότερα »

Δημοσίευση στην κατηγορία: , , ,
Validation Rule: At least one property is required
03 Ιουνίου 09 01:33 πμ | tolisss | 0 σχόλια   
Today i stump again upon the same problem . I wanted to throw a validation exception only if both of my properties do not have value. So lets create a validation rule for this one. More info on how we create custom validation rules can be found here Validation Module Since we are talking about multiple property values i think we should go with an attribute that is applied to a class and not to a property. Ok first we have to define that both our RuleBaseAttribute and RuleBaseProperties derived classes will implement . public interface IRuleRequiredForAtLeast1PropertyProperties { string MessageTemplateMustNotBeEmpty { get; set; } string Delimiters { get; set; } string TargetProperties { get; set; } } ok that looks nice lets explain what we have here for a bit.

Διαβάστε περισσότερα »

Δημοσίευση στην κατηγορία: , , ,
Automatic properties for Xpo
02 Ιουνίου 09 05:23 πμ | tolisss | 0 σχόλια   
  The problem Xpo in order to support transactions implements some special kind of property setters like private string lastName; public string LastName { get { return lastName; } set { string oldValue = lastName; if (oldValue == value) return; lastName = value; OnChanged("Name", oldValue, value); } } Or a little more elegant like private string lastName; public string LastName { get { return lastName; } set { SetPropertyValue("LastName", ref lastName, value); } } Imagine you want to Design a fairly simple model like Customer –> Orders. A Customer should have LastName, FilrstName, Age and Orders as properties and Order only an Amount property. Using the above approach one could write the following code to describe the above model.

Διαβάστε περισσότερα »

Δημοσίευση στην κατηγορία: , , , ,
The second blogging day, Which tools can i use for blogging?
02 Ιουνίου 09 05:05 πμ | tolisss | 0 σχόλια   
  The first blogging day was easy not much to say . I am a big newbie on this one. So lets start our blogging adventure. I will see it like a problem that i am going to solve and even move it on step more (hahaha classic eh?) Requirements for blogging I would like to have an offline tool like word to write my posts so i can format the text easily and faster than any Web Base Html Editor I would like to be open source or have a big community that supports it writing addons I want to upload any file along with images and videos Easy screenshot attachment At least C# code formatting abilities Lets start googling on those requirements then . First i fell upon Zountry but it didn’t convince me, i wanted something better than this one. Second attempt and voila

Διαβάστε περισσότερα »

Δημοσίευση στην κατηγορία: , ,
Xaf adventures
02 Ιουνίου 09 01:10 πμ | tolisss | 0 σχόλια   
Before many years when i trying to find my way in R&D world using Delphi 6 if I remember well i met DevExpress . Since then and after .Net appears i have been following those guys. Their organization if you do not already know is unbelievable their controls suite the same. But before 2 years they started a new project called Xaf . Xaf is an application framework that if i can describe it in 7 words is "it makes you speak the business language". I hope that you already know the basics on Xaf so i will try to blog on that wonderful framework and give you some code, ideas on that

Διαβάστε περισσότερα »

Contact me
01 Ιουνίου 09 04:19 πμ | tolisss | 0 σχόλια   
id = 23518;

Διαβάστε περισσότερα »

Περισσότερες Δημοσιεύσεις « Προηγούμενη

Search

Go

Το Ιστολόγιο

Ιστορικό Δημοσιεύσεων

Συνδρομές