Click here to Skip to main content
15,886,137 members
Articles / Web Development / HTML

Signum Framework Tutorials Part 2 – Southwind Logic

Rate me:
Please Sign up or sign in to vote.
4.45/5 (6 votes)
15 Nov 2012LGPL325 min read 31.3K   1K   22  
In this part, we will focus on writing business logic, LINQ queries and explain inheritance
<?xml version="1.0" encoding="utf-8"?>
<root>
  <!-- 
    Microsoft ResX Schema 
    
    Version 2.0
    
    The primary goals of this format is to allow a simple XML format 
    that is mostly human readable. The generation and parsing of the 
    various data types are done through the TypeConverter classes 
    associated with the data types.
    
    Example:
    
    ... ado.net/XML headers & schema ...
    <resheader name="resmimetype">text/microsoft-resx</resheader>
    <resheader name="version">2.0</resheader>
    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
        <value>[base64 mime encoded serialized .NET Framework object]</value>
    </data>
    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
        <comment>This is a comment</comment>
    </data>
                
    There are any number of "resheader" rows that contain simple 
    name/value pairs.
    
    Each data row contains a name, and value. The row also contains a 
    type or mimetype. Type corresponds to a .NET class that support 
    text/value conversion through the TypeConverter architecture. 
    Classes that don't support this are serialized and stored with the 
    mimetype set.
    
    The mimetype is used for serialized objects, and tells the 
    ResXResourceReader how to depersist the object. This is currently not 
    extensible. For a given mimetype the value must be set accordingly:
    
    Note - application/x-microsoft.net.object.binary.base64 is the format 
    that the ResXResourceWriter will generate, however the reader can 
    read any of the formats listed below.
    
    mimetype: application/x-microsoft.net.object.binary.base64
    value   : The object must be serialized with 
            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
            : and then encoded with base64 encoding.
    
    mimetype: application/x-microsoft.net.object.soap.base64
    value   : The object must be serialized with 
            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
            : and then encoded with base64 encoding.

    mimetype: application/x-microsoft.net.object.bytearray.base64
    value   : The object must be serialized into a byte array 
            : using a System.ComponentModel.TypeConverter
            : and then encoded with base64 encoding.
    -->
  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
    <xsd:element name="root" msdata:IsDataSet="true">
      <xsd:complexType>
        <xsd:choice maxOccurs="unbounded">
          <xsd:element name="metadata">
            <xsd:complexType>
              <xsd:sequence>
                <xsd:element name="value" type="xsd:string" minOccurs="0" />
              </xsd:sequence>
              <xsd:attribute name="name" use="required" type="xsd:string" />
              <xsd:attribute name="type" type="xsd:string" />
              <xsd:attribute name="mimetype" type="xsd:string" />
              <xsd:attribute ref="xml:space" />
            </xsd:complexType>
          </xsd:element>
          <xsd:element name="assembly">
            <xsd:complexType>
              <xsd:attribute name="alias" type="xsd:string" />
              <xsd:attribute name="name" type="xsd:string" />
            </xsd:complexType>
          </xsd:element>
          <xsd:element name="data">
            <xsd:complexType>
              <xsd:sequence>
                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
              </xsd:sequence>
              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
              <xsd:attribute ref="xml:space" />
            </xsd:complexType>
          </xsd:element>
          <xsd:element name="resheader">
            <xsd:complexType>
              <xsd:sequence>
                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
              </xsd:sequence>
              <xsd:attribute name="name" type="xsd:string" use="required" />
            </xsd:complexType>
          </xsd:element>
        </xsd:choice>
      </xsd:complexType>
    </xsd:element>
  </xsd:schema>
  <resheader name="resmimetype">
    <value>text/microsoft-resx</value>
  </resheader>
  <resheader name="version">
    <value>2.0</value>
  </resheader>
  <resheader name="reader">
    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
  </resheader>
  <resheader name="writer">
    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
  </resheader>
  <data name="Alerts" xml:space="preserve">
    <value>Alertes</value>
  </data>
  <data name="Average" xml:space="preserve">
    <value>Moyenne</value>
  </data>
  <data name="CalendarClose" xml:space="preserve">
    <value>Fait</value>
  </data>
  <data name="CalendarNext" xml:space="preserve">
    <value>Suivant</value>
  </data>
  <data name="CalendarPrevious" xml:space="preserve">
    <value>Précédent</value>
  </data>
  <data name="CalendarToday" xml:space="preserve">
    <value>Aujourd'hui</value>
  </data>
  <data name="Checked" xml:space="preserve">
    <value>Vérifié</value>
  </data>
  <data name="CreateAlert" xml:space="preserve">
    <value>Créer l'alerte</value>
  </data>
  <data name="CreateNote" xml:space="preserve">
    <value>Créer note</value>
  </data>
  <data name="SearchControl_ShowNRows_Rows" xml:space="preserve">
    <value>rows</value>
  </data>
  <data name="SearchControl_RowsFound" xml:space="preserve">
    <value>n 	rows found</value>
  </data>
  <data name="Excel" xml:space="preserve">
    <value>Excel</value>
  </data>
  <data name="ExecutedXTimes" xml:space="preserve">
    <value>Exécutés x fois</value>
  </data>
  <data name="Field" xml:space="preserve">
    <value>Champ</value>
  </data>
  <data name="Search_Create" xml:space="preserve">
    <value>Créer</value>
  </data>
  <data name="Future" xml:space="preserve">
    <value>Futur</value>
  </data>
  <data name="LineButton_View" xml:space="preserve">
    <value>Voir</value>
  </data>
  <data name="IncorrectEntityInSessionYouMustReloadThePageToContinue" xml:space="preserve">
    <value>Les données de session sont incorrectes. Actualisez la page pour continuer</value>
  </data>
  <data name="Maximum" xml:space="preserve">
    <value>Maximum</value>
  </data>
  <data name="Minimum" xml:space="preserve">
    <value>Minimum</value>
  </data>
  <data name="Name" xml:space="preserve">
    <value>Nom</value>
  </data>
  <data name="New" xml:space="preserve">
    <value>Nouveau</value>
  </data>
  <data name="No" xml:space="preserve">
    <value>non</value>
  </data>
  <data name="NoFiltersSpecified" xml:space="preserve">
    <value>Les filtres ne sont pas spécifiés</value>
  </data>
  <data name="NoResults" xml:space="preserve">
    <value>Aucun résultat</value>
  </data>
  <data name="Notes" xml:space="preserve">
    <value>Notes</value>
  </data>
  <data name="LineButton_Find" xml:space="preserve">
    <value>Trouver</value>
  </data>
  <data name="Operation" xml:space="preserve">
    <value>Opération</value>
  </data>
  <data name="Remove" xml:space="preserve">
    <value>Supprimer</value>
  </data>
  <data name="Save" xml:space="preserve">
    <value>Enregistrez</value>
  </data>
  <data name="Search" xml:space="preserve">
    <value>Recherche</value>
  </data>
  <data name="ShowCalendar" xml:space="preserve">
    <value>Afficher le calendrier</value>
  </data>
  <data name="LineButton_Create" xml:space="preserve">
    <value>Créer</value>
  </data>
  <data name="Type0NotAllowed" xml:space="preserve">
    <value>Type {0} non autorisé</value>
  </data>
  <data name="FilterBuilder_DeleteFilter" xml:space="preserve">
    <value>Supprimer filtre</value>
  </data>
  <data name="Value" xml:space="preserve">
    <value>Valeur</value>
  </data>
  <data name="ValueMustBeSpecifiedFor0" xml:space="preserve">
    <value>Une valeur doit être spécifiée pour {0}</value>
  </data>
  <data name="View" xml:space="preserve">
    <value>Vue</value>
  </data>
  <data name="ViewForType0IsNotAllowed" xml:space="preserve">
    <value>Affichage pour le type {0} n'est pas autorisé</value>
  </data>
  <data name="ViewNotes" xml:space="preserve">
    <value>Voir les notes</value>
  </data>
  <data name="Warned" xml:space="preserve">
    <value>Averti</value>
  </data>
  <data name="Yes" xml:space="preserve">
    <value>Oui</value>
  </data>
  <data name="YourSessionHasTimedOutClickF5ToReloadTheEntity" xml:space="preserve">
    <value>Votre session a expiré, cliquez sur la touche F5 pour recharger l'entité de la base de données</value>
  </data>
  <data name="Signum_error" xml:space="preserve">
    <value>Erreur</value>
  </data>
  <data name="FilterBuilder_AddFilter" xml:space="preserve">
    <value>Ajouter filtre</value>
  </data>
  <data name="Signum_noElementsSelected" xml:space="preserve">
    <value>Aucun élément sélectionné</value>
  </data>
  <data name="Signum_noResults" xml:space="preserve">
    <value>Aucun résultat trouvé</value>
  </data>
  <data name="FilterBuilder_AddColumn" xml:space="preserve">
    <value>Ajouter colonne</value>
  </data>
  <data name="Signum_popupErrors" xml:space="preserve">
    <value>Il existe des erreurs dans l'entité, voulez-vous continuer ?</value>
  </data>
  <data name="Signum_popupErrorsStop" xml:space="preserve">
    <value>Il existe des erreurs dans l'entité</value>
  </data>
  <data name="Signum_saved" xml:space="preserve">
    <value>Enregistré</value>
  </data>
  <data name="Signum_saving" xml:space="preserve">
    <value>Entrain de sauvegarder</value>
  </data>
  <data name="Signum_search" xml:space="preserve">
    <value>Recherche</value>
  </data>
  <data name="Signum_searching" xml:space="preserve">
    <value>Recherche...</value>
  </data>
  <data name="_0HasAnInvalidFormat" xml:space="preserve">
    <value>{0} a un format non valide</value>
  </data>
  <data name="NotPossibleToaAssign0" xml:space="preserve">
    <value>Il n'est pas possible d'attribuer {0}</value>
  </data>
  <data name="New_f" xml:space="preserve">
    <value>Nouvelle</value>
  </data>
  <data name="New_m" xml:space="preserve">
    <value>Nouveau</value>
  </data>
  <data name="SearchControl_ShowNRows_Show" xml:space="preserve">
    <value>Montrer</value>
  </data>
  <data name="Signum_addFilter" xml:space="preserve">
    <value>Ajouter filtre</value>
  </data>
  <data name="Signum_editColumnName" xml:space="preserve">
    <value>Editer le nom de la colonne</value>
  </data>
  <data name="Signum_enterTheNewColumnName" xml:space="preserve">
    <value>Entrez le nouveau nom de colonne</value>
  </data>
  <data name="Signum_executed" xml:space="preserve">
    <value>Exécuté</value>
  </data>
  <data name="Signum_executing" xml:space="preserve">
    <value>En execution...</value>
  </data>
  <data name="Signum_hideFilters" xml:space="preserve">
    <value>Cacher les filtres</value>
  </data>
  <data name="Signum_removeColumn" xml:space="preserve">
    <value>Supprimer la colonne</value>
  </data>
  <data name="Signum_reorderColumn_MoveLeft" xml:space="preserve">
    <value>Déplacer à gauche</value>
  </data>
  <data name="Signum_reorderColumn_MoveRight" xml:space="preserve">
    <value>Déplacer à droite</value>
  </data>
  <data name="Signum_showFilters" xml:space="preserve">
    <value>Afficher les filtres</value>
  </data>
  <data name="LineButton_Remove" xml:space="preserve">
    <value>Supprimer</value>
  </data>
</root>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)


Written By
Software Developer (Senior) Signum Software
Spain Spain
I'm Computer Scientist, one of the founders of Signum Software, and the lead developer behind Signum Framework.

www.signumframework.com

I love programming in C#, Linq, Compilers, Algorithms, Functional Programming, Computer Graphics, Maths...

Comments and Discussions