Click here to Skip to main content
15,867,330 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.2K   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="_0As1" xml:space="preserve">
    <value>({0} como {1})</value>
  </data>
  <data name="_0DoesNotHaveAValid0Format" xml:space="preserve">
    <value>{{0}} no tiene formato de {0} correcto</value>
  </data>
  <data name="_0HasMoreThan0DecimalPlaces" xml:space="preserve">
    <value>{{0}} tiene más de {0} decimales</value>
  </data>
  <data name="_0HasNoCorrectFormat" xml:space="preserve">
    <value>{0} no tiene el formato correcto</value>
  </data>
  <data name="_0HasSomeRepeatedElements0" xml:space="preserve">
    <value>{{0}} tiene algunos elementos repetidos: {0}</value>
  </data>
  <data name="_0HasToBe0Than1" xml:space="preserve">
    <value>{{0}} ha de ser {0} {1}</value>
  </data>
  <data name="_0HasToBeBetween0And1" xml:space="preserve">
    <value>{{0}} debe estar entre {0} y {1}</value>
  </data>
  <data name="_0HasToBeLowercase" xml:space="preserve">
    <value>{0} debe estar todo en minúsculas</value>
  </data>
  <data name="_0HasToBeUppercase" xml:space="preserve">
    <value>{0} debe estar todo en mayúsculas</value>
  </data>
  <data name="_0IsNecessaryOnState1" xml:space="preserve">
    <value>{0} es necesario en estado {1}</value>
  </data>
  <data name="_0IsNotAllowedOnState1" xml:space="preserve">
    <value>{0} no está permitido en estado  {1}</value>
  </data>
  <data name="_0IsNotAValidIdentifier" xml:space="preserve">
    <value>'{0}' no es un identificador válido</value>
  </data>
  <data name="And" xml:space="preserve">
    <value> y </value>
  </data>
  <data name="As0" xml:space="preserve">
    <value>As {0}</value>
  </data>
  <data name="Be" xml:space="preserve">
    <value>ser </value>
  </data>
  <data name="BeBetween0And1" xml:space="preserve">
    <value>estar entre {0} y {1}</value>
  </data>
  <data name="BeNotNull" xml:space="preserve">
    <value>ser no nulo</value>
  </data>
  <data name="Column0NotFound" xml:space="preserve">
    <value>La columna {0} no se ha encontrado</value>
  </data>
  <data name="ComparisonType_DistinctTo" xml:space="preserve">
    <value>distinto a</value>
  </data>
  <data name="ComparisonType_EqualTo" xml:space="preserve">
    <value>igual a</value>
  </data>
  <data name="ComparisonType_GreaterThan" xml:space="preserve">
    <value>mayor que</value>
  </data>
  <data name="ComparisonType_GreaterThanOrEqual" xml:space="preserve">
    <value>mayor o igual que</value>
  </data>
  <data name="ComparisonType_LessThan" xml:space="preserve">
    <value>menor que</value>
  </data>
  <data name="ComparisonType_LessThanOrEqual" xml:space="preserve">
    <value>menor o igual que</value>
  </data>
  <data name="Count" xml:space="preserve">
    <value>[Num]</value>
  </data>
  <data name="Day" xml:space="preserve">
    <value>Dia</value>
  </data>
  <data name="FileName" xml:space="preserve">
    <value>Nombre de archivo</value>
  </data>
  <data name="FilterOperation_Contains" xml:space="preserve">
    <value>contiene</value>
  </data>
  <data name="FilterOperation_DistinctTo" xml:space="preserve">
    <value>distinto de</value>
  </data>
  <data name="FilterOperation_EndsWith" xml:space="preserve">
    <value>acaba por</value>
  </data>
  <data name="FilterOperation_EqualTo" xml:space="preserve">
    <value>igual a</value>
  </data>
  <data name="FilterOperation_GreaterThan" xml:space="preserve">
    <value>mayor que</value>
  </data>
  <data name="FilterOperation_GreaterThanOrEqual" xml:space="preserve">
    <value>mayor o igual que</value>
  </data>
  <data name="FilterOperation_LessThan" xml:space="preserve">
    <value>menor que</value>
  </data>
  <data name="FilterOperation_LessThanOrEqual" xml:space="preserve">
    <value>menor o igual que</value>
  </data>
  <data name="FilterOperation_Like" xml:space="preserve">
    <value>like</value>
  </data>
  <data name="FilterOperation_StartsWith" xml:space="preserve">
    <value>empieza por</value>
  </data>
  <data name="Have0Decimals" xml:space="preserve">
    <value>tener {0} decimales</value>
  </data>
  <data name="HaveANumberOfElements01" xml:space="preserve">
    <value>tiene un número de elementos {0} {1}</value>
  </data>
  <data name="HaveAPrecisionOf" xml:space="preserve">
    <value>tener una precisión de </value>
  </data>
  <data name="HaveBetween0And1Characters" xml:space="preserve">
    <value>tener entre {0} y {1} caracteres</value>
  </data>
  <data name="HaveMaximun0Characters" xml:space="preserve">
    <value>tener máximo {0} caracteres</value>
  </data>
  <data name="HaveMinimum0Characters" xml:space="preserve">
    <value>tener mínimo {0} caracteres</value>
  </data>
  <data name="HaveNoRepeatedElements" xml:space="preserve">
    <value>no debe tener elementos repetidos</value>
  </data>
  <data name="HaveValid0Format" xml:space="preserve">
    <value>debe tener un formato {0} válido</value>
  </data>
  <data name="Hour" xml:space="preserve">
    <value>Hora</value>
  </data>
  <data name="IdentifiableEntity_ToStr" xml:space="preserve">
    <value>Texto</value>
  </data>
  <data name="IdNotValid" xml:space="preserve">
    <value>Id no válido</value>
  </data>
  <data name="ImmutableEntity_AllowChange" xml:space="preserve">
    <value>Permitir cambios</value>
  </data>
  <data name="InvalidFormat" xml:space="preserve">
    <value>Formato inválido</value>
  </data>
  <data name="LockeableEntity_Locked" xml:space="preserve">
    <value>Bloqueado</value>
  </data>
  <data name="Lowercase" xml:space="preserve">
    <value>Minúsculas</value>
  </data>
  <data name="Millisecond" xml:space="preserve">
    <value>Milisegundo</value>
  </data>
  <data name="Minute" xml:space="preserve">
    <value>Minuto</value>
  </data>
  <data name="Month" xml:space="preserve">
    <value>Mes</value>
  </data>
  <data name="MoreThanOneColumnNamed0" xml:space="preserve">
    <value>Más de una columna llamada {0}</value>
  </data>
  <data name="MoreThanOneTokenWithKey0FoundOn1" xml:space="preserve">
    <value>Más de un token con clave {0} en {1}</value>
  </data>
  <data name="New" xml:space="preserve">
    <value>Nuevo</value>
  </data>
  <data name="Of" xml:space="preserve">
    <value> de </value>
  </data>
  <data name="OrBeNull" xml:space="preserve">
    <value>o ser nulo</value>
  </data>
  <data name="Second" xml:space="preserve">
    <value>Segundo</value>
  </data>
  <data name="State0NotRegisteredInStateValidator" xml:space="preserve">
    <value>El estado {0} no está registrado en StateValidator</value>
  </data>
  <data name="Telephone" xml:space="preserve">
    <value>Teléfono</value>
  </data>
  <data name="TheLenghtOf0HasToBeEqualTo0" xml:space="preserve">
    <value>La longitud de {{0}} ha de ser {0}</value>
  </data>
  <data name="TheLengthOf0HasToBeGreaterOrEqualTo0" xml:space="preserve">
    <value>La longitud de {{0}} ha de ser mayor o igual a {0}</value>
  </data>
  <data name="TheLengthOf0HasToBeLesserOrEqualTo0" xml:space="preserve">
    <value>La longitud de {{0}} ha de ser menor o igual a {0}</value>
  </data>
  <data name="TheNumberOfElementsOf0HasToBe01" xml:space="preserve">
    <value>El número de elementos en {{0}} ha de ser {0} {1}</value>
  </data>
  <data name="Token0NotCompatibleWith1" xml:space="preserve">
    <value>Token {0} no compatible con {1}</value>
  </data>
  <data name="TypeNotFound" xml:space="preserve">
    <value>Tipo no encontrado</value>
  </data>
  <data name="Uppercase" xml:space="preserve">
    <value>Mayúsculas</value>
  </data>
  <data name="Year" xml:space="preserve">
    <value>Año</value>
  </data>
  <data name="MonthStart" xml:space="preserve">
    <value>Inicio de mes </value>
  </data>
  <data name="_0IsNotAllowed" xml:space="preserve">
    <value>{0} no está permitido</value>
  </data>
  <data name="_0IsNecessary" xml:space="preserve">
    <value>{0} es necesario</value>
  </data>
  <data name="Date" xml:space="preserve">
    <value>Fecha</value>
  </data>
  <data name="_0IsNotSet" xml:space="preserve">
    <value>{0} no establecido</value>
  </data>
  <data name="AlertDN" xml:space="preserve">
    <value>Alerta</value>
  </data>
  <data name="AlertDN_AlertDate" xml:space="preserve">
    <value>Fecha de alerta</value>
  </data>
  <data name="AlertDN_CheckDate" xml:space="preserve">
    <value>Fecha verificación</value>
  </data>
  <data name="AlertDN_Entity" xml:space="preserve">
    <value>Entidad</value>
  </data>
  <data name="AlertDN_Text" xml:space="preserve">
    <value>Texto</value>
  </data>
  <data name="ColorDN" xml:space="preserve">
    <value>Color</value>
  </data>
  <data name="ColorDN_Hex" xml:space="preserve">
    <value>Hex</value>
  </data>
  <data name="CorruptEntity" xml:space="preserve">
    <value>Entidad corruptible</value>
  </data>
  <data name="CorruptEntity_Corrupt" xml:space="preserve">
    <value>Corrupta</value>
  </data>
  <data name="ImmutableEntity" xml:space="preserve">
    <value>Entidad inmutable</value>
  </data>
  <data name="LockableEntity_Locked" xml:space="preserve">
    <value>Bloqueado</value>
  </data>
  <data name="NoteDN" xml:space="preserve">
    <value>Nota</value>
  </data>
  <data name="NoteDN_Target" xml:space="preserve">
    <value>Destino</value>
  </data>
  <data name="NoteDN_Text" xml:space="preserve">
    <value>Texto</value>
  </data>
  <data name="TypeDN" xml:space="preserve">
    <value>Tipo</value>
  </data>
  <data name="TypeDN_ClassName" xml:space="preserve">
    <value>Class Name</value>
  </data>
  <data name="TypeDN_CleanName" xml:space="preserve">
    <value>Clean Name</value>
  </data>
  <data name="TypeDN_FriendlyName" xml:space="preserve">
    <value>Friendly Name</value>
  </data>
  <data name="TypeDN_FullClassName" xml:space="preserve">
    <value>Full Class Name</value>
  </data>
  <data name="TypeDN_Namespace" xml:space="preserve">
    <value>Namespace</value>
  </data>
  <data name="TypeDN_TableName" xml:space="preserve">
    <value>Table Name</value>
  </data>
  <data name="AttemptToModifyLockedEntity0" xml:space="preserve">
    <value>Se intentó modificar la entidad bloqueada {0}</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