Click here to Skip to main content
15,885,366 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="_0As1" xml:space="preserve">
    <value>({0} as {1})</value>
  </data>
  <data name="_0DoesNotHaveAValid0Format" xml:space="preserve">
    <value>{{0}} does not have a valid {0} format</value>
  </data>
  <data name="_0HasMoreThan0DecimalPlaces" xml:space="preserve">
    <value>{{0}} has more than {0} decimal places</value>
  </data>
  <data name="_0HasNoCorrectFormat" xml:space="preserve">
    <value>{0} has no correct format</value>
  </data>
  <data name="_0HasSomeRepeatedElements0" xml:space="preserve">
    <value>{{0}} has some repeated elements: {0}</value>
  </data>
  <data name="_0HasToBe0Than1" xml:space="preserve">
    <value>{{0}} has to be {0} {1}</value>
  </data>
  <data name="_0HasToBeBetween0And1" xml:space="preserve">
    <value>{{0}} Has to be between {0} and {1}</value>
  </data>
  <data name="_0HasToBeLowercase" xml:space="preserve">
    <value>{0} has to be lowercase</value>
  </data>
  <data name="_0HasToBeUppercase" xml:space="preserve">
    <value>{0} has to be uppercase</value>
  </data>
  <data name="_0IsNecessaryOnState1" xml:space="preserve">
    <value>{0} is necessary on state {1}</value>
  </data>
  <data name="_0IsNotAllowedOnState1" xml:space="preserve">
    <value>{0} is not allowed on state {1}</value>
  </data>
  <data name="_0IsNotAValidIdentifier" xml:space="preserve">
    <value>'{0}' is not a valid identifier</value>
  </data>
  <data name="And" xml:space="preserve">
    <value> and </value>
  </data>
  <data name="As0" xml:space="preserve">
    <value>As {0}</value>
  </data>
  <data name="Be" xml:space="preserve">
    <value>be </value>
  </data>
  <data name="BeBetween0And1" xml:space="preserve">
    <value>be between {0} and {1}</value>
  </data>
  <data name="BeNotNull" xml:space="preserve">
    <value>be not null</value>
  </data>
  <data name="Column0NotFound" xml:space="preserve">
    <value>Column {0} not found</value>
  </data>
  <data name="ComparisonType_DistinctTo" xml:space="preserve">
    <value>distinct to</value>
  </data>
  <data name="ComparisonType_EqualTo" xml:space="preserve">
    <value>equal to</value>
  </data>
  <data name="ComparisonType_GreaterThan" xml:space="preserve">
    <value>greater than</value>
  </data>
  <data name="ComparisonType_GreaterThanOrEqual" xml:space="preserve">
    <value>greater than or equal</value>
  </data>
  <data name="ComparisonType_LessThan" xml:space="preserve">
    <value>less than</value>
  </data>
  <data name="ComparisonType_LessThanOrEqual" xml:space="preserve">
    <value>less than or equal</value>
  </data>
  <data name="Count" xml:space="preserve">
    <value>[Count]</value>
  </data>
  <data name="Day" xml:space="preserve">
    <value>Day</value>
  </data>
  <data name="FileName" xml:space="preserve">
    <value>file name</value>
  </data>
  <data name="FilterOperation_Contains" xml:space="preserve">
    <value>contains</value>
  </data>
  <data name="FilterOperation_DistinctTo" xml:space="preserve">
    <value>distinct to</value>
  </data>
  <data name="FilterOperation_EndsWith" xml:space="preserve">
    <value>ends with</value>
  </data>
  <data name="FilterOperation_EqualTo" xml:space="preserve">
    <value>equal to</value>
  </data>
  <data name="FilterOperation_GreaterThan" xml:space="preserve">
    <value>greater than</value>
  </data>
  <data name="FilterOperation_GreaterThanOrEqual" xml:space="preserve">
    <value>greater than or equal</value>
  </data>
  <data name="FilterOperation_LessThan" xml:space="preserve">
    <value>less than</value>
  </data>
  <data name="FilterOperation_LessThanOrEqual" xml:space="preserve">
    <value>less than or equal</value>
  </data>
  <data name="FilterOperation_Like" xml:space="preserve">
    <value>like</value>
  </data>
  <data name="FilterOperation_StartsWith" xml:space="preserve">
    <value>starts with</value>
  </data>
  <data name="Have0Decimals" xml:space="preserve">
    <value>have {0} decimals</value>
  </data>
  <data name="HaveANumberOfElements01" xml:space="preserve">
    <value>have a number of elements {0} {1}</value>
  </data>
  <data name="HaveAPrecisionOf" xml:space="preserve">
    <value>have a precision of </value>
  </data>
  <data name="HaveBetween0And1Characters" xml:space="preserve">
    <value>have between {0} and {1} characters</value>
  </data>
  <data name="HaveMaximun0Characters" xml:space="preserve">
    <value>have maximun {0} characters</value>
  </data>
  <data name="HaveMinimum0Characters" xml:space="preserve">
    <value>have minimum {0} characters</value>
  </data>
  <data name="HaveNoRepeatedElements" xml:space="preserve">
    <value>have no repeated elements</value>
  </data>
  <data name="HaveValid0Format" xml:space="preserve">
    <value>have a valid {0} format</value>
  </data>
  <data name="Hour" xml:space="preserve">
    <value>Hour</value>
  </data>
  <data name="IdNotValid" xml:space="preserve">
    <value>Id not valid</value>
  </data>
  <data name="ImmutableEntity_AllowChange" xml:space="preserve">
    <value>Allow Change</value>
  </data>
  <data name="InvalidFormat" xml:space="preserve">
    <value>Invalid Format</value>
  </data>
  <data name="LockeableEntity_Locked" xml:space="preserve">
    <value>Locked</value>
  </data>
  <data name="Lowercase" xml:space="preserve">
    <value>lowercase</value>
  </data>
  <data name="Millisecond" xml:space="preserve">
    <value>Millisecond</value>
  </data>
  <data name="Minute" xml:space="preserve">
    <value>Minute</value>
  </data>
  <data name="Month" xml:space="preserve">
    <value>Month</value>
  </data>
  <data name="MoreThanOneColumnNamed0" xml:space="preserve">
    <value>More than one column named {0}</value>
  </data>
  <data name="MoreThanOneTokenWithKey0FoundOn1" xml:space="preserve">
    <value>More than one token with key {0} found on {1}</value>
  </data>
  <data name="New" xml:space="preserve">
    <value>New</value>
  </data>
  <data name="Of" xml:space="preserve">
    <value> of </value>
  </data>
  <data name="OrBeNull" xml:space="preserve">
    <value>or be null</value>
  </data>
  <data name="Second" xml:space="preserve">
    <value>Second</value>
  </data>
  <data name="State0NotRegisteredInStateValidator" xml:space="preserve">
    <value>State {0} not registered in StateValidator</value>
  </data>
  <data name="Telephone" xml:space="preserve">
    <value>Telephone</value>
  </data>
  <data name="TheLenghtOf0HasToBeEqualTo0" xml:space="preserve">
    <value>The lenght of {{0}} has to be equal to {0}</value>
  </data>
  <data name="TheLengthOf0HasToBeGreaterOrEqualTo0" xml:space="preserve">
    <value>The length of {{0}} has to be greater than or equal to {0}</value>
  </data>
  <data name="TheLengthOf0HasToBeLesserOrEqualTo0" xml:space="preserve">
    <value>The length of {{0}} has to be less than or equal to {0}</value>
  </data>
  <data name="TheNumberOfElementsOf0HasToBe01" xml:space="preserve">
    <value>The number of elements of {{0}} has to be {0} {1}</value>
  </data>
  <data name="Token0NotCompatibleWith1" xml:space="preserve">
    <value>Token {0} not compatible with {1}</value>
  </data>
  <data name="TypeNotFound" xml:space="preserve">
    <value>Type not found</value>
  </data>
  <data name="Uppercase" xml:space="preserve">
    <value>uppercase</value>
  </data>
  <data name="Year" xml:space="preserve">
    <value>Year</value>
  </data>
  <data name="_0IsNotAllowed" xml:space="preserve">
    <value>{0} is not allowed</value>
  </data>
  <data name="_0IsNecessary" xml:space="preserve">
    <value>{0} is necessary</value>
  </data>
  <data name="Date" xml:space="preserve">
    <value>Date</value>
  </data>
  <data name="MonthStart" xml:space="preserve">
    <value>Month Start </value>
  </data>
  <data name="_0IsNotSet" xml:space="preserve">
    <value>{0} is not set</value>
  </data>
  <data name="IdentifiableEntity_ToStr" xml:space="preserve">
    <value>Text</value>
  </data>
  <data name="AttemptToModifyLockedEntity0" xml:space="preserve">
    <value>Attempt to modify locked entity {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