WizzardTypedDataProperty.cs :  » Persistence-Frameworks » Data-Holder » GEGeneratorWizzard » C# / CSharp Open Source

Home
C# / CSharp Open Source
1.2.6.4 mono .net core
2.2.6.4 mono core
3.Aspect Oriented Frameworks
4.Bloggers
5.Build Systems
6.Business Application
7.Charting Reporting Tools
8.Chat Servers
9.Code Coverage Tools
10.Content Management Systems CMS
11.CRM ERP
12.Database
13.Development
14.Email
15.Forum
16.Game
17.GIS
18.GUI
19.IDEs
20.Installers Generators
21.Inversion of Control Dependency Injection
22.Issue Tracking
23.Logging Tools
24.Message
25.Mobile
26.Network Clients
27.Network Servers
28.Office
29.PDF
30.Persistence Frameworks
31.Portals
32.Profilers
33.Project Management
34.RSS RDF
35.Rule Engines
36.Script
37.Search Engines
38.Sound Audio
39.Source Control
40.SQL Clients
41.Template Engines
42.Testing
43.UML
44.Web Frameworks
45.Web Service
46.Web Testing
47.Wiki Engines
48.Windows Presentation Foundation
49.Workflows
50.XML Parsers
C# / C Sharp
C# / C Sharp by API
C# / CSharp Tutorial
C# / CSharp Open Source » Persistence Frameworks » Data Holder 
Data Holder » GEGeneratorWizzard » WizzardTypedDataProperty.cs

using System;
using System.Collections;
using System.Runtime.Serialization;
using DataHolder.Containers;

namespace GEGeneratorWizzard{
  
  #region WizzardTypedDataProperty
  [Serializable]  
  
  public class WizzardTypedDataProperty : DataHolder.Containers.GenericData
  {
    #region Constructors
    public WizzardTypedDataProperty()
    {
      GUID = Guid.NewGuid().ToString();
    }

    public WizzardTypedDataProperty(SerializationInfo info, StreamingContext context):base(info, context)
    {
      if(GUID.Length == 0)
        GUID = Guid.NewGuid().ToString();
    }
    #endregion
    
    
    protected override DataHolder.Containers.Property.PropertyCollection NewPropertyCollection
    {
      get
      {
      return new DataHolder.Containers.Property.PropertyCollection(
         new DataHolder.Containers.Property.GenericDataProperty [] {          
          new DataHolder.Containers.Property.Property("PropertyName", typeof(string) )
          ,
          new DataHolder.Containers.Property.Property("PropertyValueType", typeof(string) )
          ,
          new DataHolder.Containers.Property.Property("AutoCreate", typeof(bool)  , true, true)
          ,
          new DataHolder.Containers.Property.Property("CreateTypedProperty", typeof(bool)  , true, true)
          ,
          new DataHolder.Containers.Property.Property("TypedPropertyType", typeof(string) )
          ,
          new DataHolder.Containers.Property.Property("InsertOrderMasterDetail", typeof(bool)  , true, true)
          ,
          new DataHolder.Containers.Property.Property("UpdateOrderMasterDetail", typeof(bool)  , true, true)
          ,
          new DataHolder.Containers.Property.Property("DeleteOrderMasterDetail", typeof(bool)  , false, true)
          ,
          new DataHolder.Containers.Property.Property("LoadWithMaster", typeof(bool)  , true, true)
          ,
          new DataHolder.Containers.Property.Property("SaveWithMaster", typeof(bool)  , true, true)
          ,
          new DataHolder.Containers.Property.Property("RelationMappingCount", typeof(int)  , 0, true)
          ,
          new DataHolder.Containers.Property.Property("Index", typeof(int)  , 0, true)
          ,
          new DataHolder.Containers.Property.Property("TypedEntityIndex", typeof(int)  , 0, true)
          ,
            new DataHolder.Containers.Property.Property("GUID", typeof(string), string.Empty, true)
          ,
          new DataHolder.Containers.Property.TypedProperty("RelationMapping", typeof(GenericDataCollection<WizzardTypedRelationMapping>) )
          ,
          new DataHolder.Containers.Property.TypedProperty("Attributes", typeof(GenericDataCollection<WizzardFieldAttribute>), true )
          ,
          new DataHolder.Containers.Property.Property("AttributesCount", typeof(int)  , 0, true)
          
          }
        );
      }
    }
    
    public String PropertyName
    {
      get{return GetValue<string>( 0, string.Empty);}
      set{SetValue<string>(0, value, string.Empty);}
    }  
    
    public String PropertyValueType
    {
      get{return GetValue<string>( 1, string.Empty);}
      set{SetValue<string>(1, value, string.Empty);}
    }  
    
    public bool AutoCreate
    {
      get{return (bool)this[2];}
      set{this[2] = value;}
    }
    
    public bool CreateTypedProperty
    {
      get{return (bool)this[3];}
      set{this[3] = value;}
    }
    
    public String TypedPropertyType
    {
      get{return GetValue<string>( 4, string.Empty);}
      set{SetValue<string>(4, value, string.Empty);}
    }  
    
    public bool InsertOrderMasterDetail
    {
      get{return (bool)this[5];}
      set{this[5] = value;}
    }
    
    public bool UpdateOrderMasterDetail
    {
      get{return (bool)this[6];}
      set{this[6] = value;}
    }
    
    public bool DeleteOrderMasterDetail
    {
      get{return (bool)this[7];}
      set{this[7] = value;}
    }
    
    public bool LoadWithMaster
    {
      get{return (bool)this[8];}
      set{this[8] = value;}
    }
    
    public bool SaveWithMaster
    {
      get{return (bool)this[9];}
      set{this[9] = value;}
    }
    
    public Int32 RelationMappingCount
    {
      get{return (Int32)this[10];}
      set{this[10] = value;}
    }
    
    public Int32 Index
    {
      get{return (Int32)this[11];}
      set{this[11] = value;}
    }

        public Int32 TypedEntityIndex
    {
      get{return (Int32)this[12];}
      set{this[12] = value;}
    }

    public String GUID
    {
      get{return (String)this[13];}
      set{this[13] = value;}
    }

    public GenericDataCollection<WizzardTypedRelationMapping> RelationMapping
    {
      get{return (GenericDataCollection<WizzardTypedRelationMapping>)this[14];}
      set{this[14] = value;}
    }

    public GenericDataCollection<WizzardFieldAttribute> Attributes
    {
      get{return (GenericDataCollection<WizzardFieldAttribute>)this[15];}
      set{this[15] = value;}
    }
            
    public Int32 AttributesCount
    {
      get{return (Int32)this[16];}
      set{this[16] = value;}
    }
  }
  
  #endregion

}

www.java2v.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.