///////////////////////////////////////////////////////////////
// This is generated code.
//////////////////////////////////////////////////////////////
// Code is generated using LLBLGen Pro version: 2.0.0.0
// Code is generated on: Saturday, February 24, 2007 10:00:22 PM
// Code is generated using templates: SD.TemplateBindings.SharedTemplates.BackwardsCompatibility.NET20
// Templates vendor: Solutions Design.
// Templates version:
//////////////////////////////////////////////////////////////
using System;
#if !CF
using System.Runtime.Serialization;
#endif
using System.Collections;
using DataFeedFrameworkDAL.FactoryClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
namespace DataFeedFrameworkDAL.HelperClasses
{
///
/// Helper class which will eases the creation of custom made resultsets. Usable in typed lists
/// and dynamic lists created using the dynamic query engine.
///
#if CF
[SD.LLBLGen.Pro.ORMSupportClasses.Serializable]
#else
[Serializable]
#endif
public partial class ResultsetFields : EntityFields, ISerializable
{
/// CTor
public ResultsetFields(int amountFields) : base(amountFields, InheritanceInfoProviderSingleton.GetInstance(), null)
{
}
/// Deserialization constructor
/// Info.
/// Context.
protected ResultsetFields(SerializationInfo info, StreamingContext context):base((int)info.GetInt32("_amountFields"), InheritanceInfoProviderSingleton.GetInstance(), null)
{
ArrayList fields = (ArrayList)info.GetValue("_fields", typeof(ArrayList));
for (int i = 0; i < fields.Count; i++)
{
this[i] = (IEntityField)fields[i];
}
}
/// Populates a with the data needed to serialize the target object.
/// The to populate with data.
/// The destination (see ) for this serialization.
public void GetObjectData(SerializationInfo info, StreamingContext context)
{
info.AddValue("_amountFields", this.Count);
ArrayList fields = new ArrayList(this.Count);
for (int i = 0; i < this.Count; i++)
{
fields.Add(this[i]);
}
info.AddValue("_fields", fields, typeof(ArrayList));
}
/// Creates the specified field on the position indexInResultset in the resultset.
/// The specification of the field to create.
/// The position in the resultset where the field will be created on
/// The alias to use for this field in the resultset
public void DefineField(FeedCreationFieldIndex fieldToDefine, int indexInResultset, string alias)
{
DefineField(fieldToDefine, indexInResultset, alias, string.Empty, AggregateFunction.None);
}
/// Creates the specified field on the position indexInResultset in the resultset.
/// The specification of the field to create.
/// The position in the resultset where the field will be created on
/// The alias to use for this field in the resultset
/// The alias to use for the entity this field belongs to. Required to specify multiple times the same entity in a typed list
public void DefineField(FeedCreationFieldIndex fieldToDefine, int indexInResultset, string alias, string entityAlias)
{
DefineField(fieldToDefine, indexInResultset, alias, entityAlias, AggregateFunction.None);
}
/// Creates the specified field on the position indexInResultset in the resultset.
/// The specification of the field to create.
/// The position in the resultset where the field will be created on
/// The alias to use for this field in the resultset
/// The alias to use for the entity this field belongs to. Required to specify multiple times the same entity in a typed list
/// the aggregate function to apply to this field.
public void DefineField(FeedCreationFieldIndex fieldToDefine, int indexInResultset, string alias, string entityAlias, AggregateFunction aggregateFunctionToApply)
{
base.DefineField(EntityFieldFactory.Create(fieldToDefine), indexInResultset, alias, entityAlias, aggregateFunctionToApply);
}
/// Creates the specified field on the position indexInResultset in the resultset.
/// The specification of the field to create.
/// The position in the resultset where the field will be created on
/// The alias to use for this field in the resultset
public void DefineField(SnippetFieldIndex fieldToDefine, int indexInResultset, string alias)
{
DefineField(fieldToDefine, indexInResultset, alias, string.Empty, AggregateFunction.None);
}
/// Creates the specified field on the position indexInResultset in the resultset.
/// The specification of the field to create.
/// The position in the resultset where the field will be created on
/// The alias to use for this field in the resultset
/// The alias to use for the entity this field belongs to. Required to specify multiple times the same entity in a typed list
public void DefineField(SnippetFieldIndex fieldToDefine, int indexInResultset, string alias, string entityAlias)
{
DefineField(fieldToDefine, indexInResultset, alias, entityAlias, AggregateFunction.None);
}
/// Creates the specified field on the position indexInResultset in the resultset.
/// The specification of the field to create.
/// The position in the resultset where the field will be created on
/// The alias to use for this field in the resultset
/// The alias to use for the entity this field belongs to. Required to specify multiple times the same entity in a typed list
/// the aggregate function to apply to this field.
public void DefineField(SnippetFieldIndex fieldToDefine, int indexInResultset, string alias, string entityAlias, AggregateFunction aggregateFunctionToApply)
{
base.DefineField(EntityFieldFactory.Create(fieldToDefine), indexInResultset, alias, entityAlias, aggregateFunctionToApply);
}
/// Creates the specified field on the position indexInResultset in the resultset.
/// The specification of the field to create.
/// The position in the resultset where the field will be created on
/// The alias to use for this field in the resultset
public void DefineField(SnippetGroupFieldIndex fieldToDefine, int indexInResultset, string alias)
{
DefineField(fieldToDefine, indexInResultset, alias, string.Empty, AggregateFunction.None);
}
/// Creates the specified field on the position indexInResultset in the resultset.
/// The specification of the field to create.
/// The position in the resultset where the field will be created on
/// The alias to use for this field in the resultset
/// The alias to use for the entity this field belongs to. Required to specify multiple times the same entity in a typed list
public void DefineField(SnippetGroupFieldIndex fieldToDefine, int indexInResultset, string alias, string entityAlias)
{
DefineField(fieldToDefine, indexInResultset, alias, entityAlias, AggregateFunction.None);
}
/// Creates the specified field on the position indexInResultset in the resultset.
/// The specification of the field to create.
/// The position in the resultset where the field will be created on
/// The alias to use for this field in the resultset
/// The alias to use for the entity this field belongs to. Required to specify multiple times the same entity in a typed list
/// the aggregate function to apply to this field.
public void DefineField(SnippetGroupFieldIndex fieldToDefine, int indexInResultset, string alias, string entityAlias, AggregateFunction aggregateFunctionToApply)
{
base.DefineField(EntityFieldFactory.Create(fieldToDefine), indexInResultset, alias, entityAlias, aggregateFunctionToApply);
}
#region Included Code
#endregion
}
}