/////////////////////////////////////////////////////////////// // This is generated code. ////////////////////////////////////////////////////////////// // Code is generated using LLBLGen Pro version: 4.2 // Code is generated on: // Code is generated using templates: SD.TemplateBindings.SharedTemplates // Templates vendor: Solutions Design. // Templates version: ////////////////////////////////////////////////////////////// using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; #if !CF using System.Runtime.Serialization; #endif using System.Xml.Serialization; using System.Xml; using System.Xml.Schema; using Datalib.EntityClasses; using SD.LLBLGen.Pro.ORMSupportClasses; namespace Datalib.HelperClasses { // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces // __LLBLGENPRO_USER_CODE_REGION_END /// EntityCollection implementation which is used for backwards compatibility and for design time databinding. This EntityCollection is an EntityCollection(Of EntityBase2) /// [Serializable] public partial class EntityCollection : EntityCollectionNonGeneric { /// CTor public EntityCollection():base() { } /// CTor /// The entity factory object to use when this collection has to construct new objects. public EntityCollection(IEntityFactory2 entityFactoryToUse):base(entityFactoryToUse) { } /// Protected CTor for deserialization /// /// protected EntityCollection(SerializationInfo info, StreamingContext context) : base(info, context) { } #region Custom EntityCollection code // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCollectionCode // __LLBLGENPRO_USER_CODE_REGION_END #endregion #region Included Code #endregion } /// Generic entity collection class which replaces the original generated, non strongly typed EntityCollection variant. /// Use the generated, non-generic EntityCollection class for design-time databinding for winforms, as winforms doesn't support /// design time databinding (runtime-databinding works fine) with generic classes [Serializable] public partial class EntityCollection : EntityCollectionBase2 where TEntity : EntityBase2, IEntity2 { /// CTor which determines the factory to use from the generic type argument, unless TEntity is an abstract entity. If possible use the ctor which accepts a factory public EntityCollection() : base( (IEntityFactory2)null ) { } /// CTor /// The entity factory object to use when this collection has to construct new objects. public EntityCollection( IEntityFactory2 entityFactoryToUse) : base( entityFactoryToUse ) { } /// CTor /// initial contents for this collection public EntityCollection(IEnumerable initialContents ) : base( initialContents ) { } /// Protected CTor for deserialization /// /// protected EntityCollection( SerializationInfo info, StreamingContext context) : base( info, context ) { } #region Custom EntityCollection code // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCollectionCodeGeneric // __LLBLGENPRO_USER_CODE_REGION_END #endregion #region Included Code #endregion } }