AspnetWebeventEvents Partial Class

This is the base partial data object class for the “webeventevents” table in the provider database. Using this class implies that there will be a singular relationship between the remaining provider tables and relevant data objects.

[csharp] 
//*****************************************************************************
// This file is part of the data access layer example to the ASP.NET 2.0 provider database
// This file was written by Adam Buenz [WSS MVP] of ARB Security Solutions, LLC
// http://www.sharepointsecurity.com
//
// This file and its parts is free for re-distribution, for use in both free
// and commercial applications, however this header must remain intact for legal
// use. The data access layer example is distributed in the hope that it will
// be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//*****************************************************************************
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using Aspnet.Provider.Datalayer.Commands;
using Aspnet.Provider.Datalayer.DataTransferObjects;

namespace Aspnet.Provider.Datalayer
{
///

/// The AspnetWebeventEvents class.
///

public partial class AspnetWebeventEvents : IPersistable
{
#region Members

private bool isNew;
private bool _isNew;
private string eventid;
private DateTime eventtimeutc;
private DateTime eventtime;
private string eventtype;
private decimal eventsequence;
private decimal eventoccurrence;
private int eventcode;
private int eventdetailcode;
private string message;
private string applicationpath;
private string applicationvirtualpath;
private string machinename;
private string requesturl;
private string exceptiontype;
private string details;

#endregion

#region Properties

///

/// The Eventid.
///

[StringInfo(32, true)]
public virtual string Eventid
{
get { return this.eventid; }
set { this.eventid = value; }
}

///

/// The Eventtimeutc.
///

public virtual DateTime Eventtimeutc
{
get { return this.eventtimeutc; }
set { this.eventtimeutc = value; }
}

///

/// The Eventtime.
///

public virtual DateTime Eventtime
{
get { return this.eventtime; }
set { this.eventtime = value; }
}

///

/// The Eventtype.
///

[StringInfo(256, true)]
public virtual string Eventtype
{
get { return this.eventtype; }
set { this.eventtype = value; }
}

///

/// The Eventsequence.
///

public virtual decimal Eventsequence
{
get { return this.eventsequence; }
set { this.eventsequence = value; }
}

///

/// The Eventoccurrence.
///

public virtual decimal Eventoccurrence
{
get { return this.eventoccurrence; }
set { this.eventoccurrence = value; }
}

///

/// The Eventcode.
///

public virtual int Eventcode
{
get { return this.eventcode; }
set { this.eventcode = value; }
}

///

/// The Eventdetailcode.
///

public virtual int Eventdetailcode
{
get { return this.eventdetailcode; }
set { this.eventdetailcode = value; }
}

///

/// The Message.
///

[StringInfo(1024, false)]
public virtual string Message
{
get { return this.message; }
set { this.message = value; }
}

///

/// The Applicationpath.
///

[StringInfo(256, false)]
public virtual string Applicationpath
{
get { return this.applicationpath; }
set { this.applicationpath = value; }
}

///

/// The Applicationvirtualpath.
///

[StringInfo(256, false)]
public virtual string Applicationvirtualpath
{
get { return this.applicationvirtualpath; }
set { this.applicationvirtualpath = value; }
}

///

/// The Machinename.
///

[StringInfo(256, true)]
public virtual string Machinename
{
get { return this.machinename; }
set { this.machinename = value; }
}

///

/// The Requesturl.
///

[StringInfo(1024, false)]
public virtual string Requesturl
{
get { return this.requesturl; }
set { this.requesturl = value; }
}

///

/// The Exceptiontype.
///

[StringInfo(256, false)]
public virtual string Exceptiontype
{
get { return this.exceptiontype; }
set { this.exceptiontype = value; }
}

///

/// The Details.
///

public virtual string Details
{
get { return this.details; }
set { this.details = value; }
}

#endregion

#region ColumnNames

///

/// The corresponding schema name.
///

internal const string SchemaName = “dbo”;

///

/// The corresponding table name.
///

internal const string TableName = “aspnet_WebEvent_Events”;

///

/// The column names.
///

internal class ColumnNames
{
///

/// The column name of the Eventid property.
///

public const string Eventid=”EventId”;
///

/// The column name of the Eventtimeutc property.
///

public const string Eventtimeutc=”EventTimeUtc”;
///

/// The column name of the Eventtime property.
///

public const string Eventtime=”EventTime”;
///

/// The column name of the Eventtype property.
///

public const string Eventtype=”EventType”;
///

/// The column name of the Eventsequence property.
///

public const string Eventsequence=”EventSequence”;
///

/// The column name of the Eventoccurrence property.
///

public const string Eventoccurrence=”EventOccurrence”;
///

/// The column name of the Eventcode property.
///

public const string Eventcode=”EventCode”;
///

/// The column name of the Eventdetailcode property.
///

public const string Eventdetailcode=”EventDetailCode”;
///

/// The column name of the Message property.
///

public const string Message=”Message”;
///

/// The column name of the Applicationpath property.
///

public const string Applicationpath=”ApplicationPath”;
///

/// The column name of the Applicationvirtualpath property.
///

public const string Applicationvirtualpath=”ApplicationVirtualPath”;
///

/// The column name of the Machinename property.
///

public const string Machinename=”MachineName”;
///

/// The column name of the Requesturl property.
///

public const string Requesturl=”RequestUrl”;
///

/// The column name of the Exceptiontype property.
///

public const string Exceptiontype=”ExceptionType”;
///

/// The column name of the Details property.
///

public const string Details=”Details”;
}

#endregion

///

/// The default constructor.
///

public AspnetWebeventEvents()
{
this.isNew = true;
PersistenceManager.InvokeInstanceMethod(this, “CreationComplete”, null);
}

///

/// The constructor of the required fields.
///

/// The Eventid. /// The Eventtimeutc. /// The Eventtime. /// The Eventtype. /// The Eventsequence. /// The Eventoccurrence. /// The Eventcode. /// The Eventdetailcode. /// The Machinename. public AspnetWebeventEvents(string eventid, DateTime eventtimeutc, DateTime eventtime, string eventtype, decimal eventsequence, decimal eventoccurrence, int eventcode, int eventdetailcode, string machinename)
{
this.eventid = eventid;
this.eventtimeutc = eventtimeutc;
this.eventtime = eventtime;
this.eventtype = eventtype;
this.eventsequence = eventsequence;
this.eventoccurrence = eventoccurrence;
this.eventcode = eventcode;
this.eventdetailcode = eventdetailcode;
this.machinename = machinename;

this.isNew = true;
PersistenceManager.InvokeInstanceMethod(this, “CreationComplete”, null);
}

///

/// The constructor from IDataReader.
///

/// An initalized IDataReader. internal AspnetWebeventEvents(IDataReader reader)
{
if ((reader[“EventId”] != null) && (reader[“EventId”] != DBNull.Value))
this.eventid = (string)reader[“EventId”];
if ((reader[“EventTimeUtc”] != null) && (reader[“EventTimeUtc”] != DBNull.Value))
this.eventtimeutc = (DateTime)reader[“EventTimeUtc”];
if ((reader[“EventTime”] != null) && (reader[“EventTime”] != DBNull.Value))
this.eventtime = (DateTime)reader[“EventTime”];
if ((reader[“EventType”] != null) && (reader[“EventType”] != DBNull.Value))
this.eventtype = (string)reader[“EventType”];
if ((reader[“EventSequence”] != null) && (reader[“EventSequence”] != DBNull.Value))
this.eventsequence = (decimal)reader[“EventSequence”];
if ((reader[“EventOccurrence”] != null) && (reader[“EventOccurrence”] != DBNull.Value))
this.eventoccurrence = (decimal)reader[“EventOccurrence”];
if ((reader[“EventCode”] != null) && (reader[“EventCode”] != DBNull.Value))
this.eventcode = (int)reader[“EventCode”];
if ((reader[“EventDetailCode”] != null) && (reader[“EventDetailCode”] != DBNull.Value))
this.eventdetailcode = (int)reader[“EventDetailCode”];
if ((reader[“Message”] != null) && (reader[“Message”] != DBNull.Value))
this.message = (string)reader[“Message”];
if ((reader[“ApplicationPath”] != null) && (reader[“ApplicationPath”] != DBNull.Value))
this.applicationpath = (string)reader[“ApplicationPath”];
if ((reader[“ApplicationVirtualPath”] != null) && (reader[“ApplicationVirtualPath”] != DBNull.Value))
this.applicationvirtualpath = (string)reader[“ApplicationVirtualPath”];
if ((reader[“MachineName”] != null) && (reader[“MachineName”] != DBNull.Value))
this.machinename = (string)reader[“MachineName”];
if ((reader[“RequestUrl”] != null) && (reader[“RequestUrl”] != DBNull.Value))
this.requesturl = (string)reader[“RequestUrl”];
if ((reader[“ExceptionType”] != null) && (reader[“ExceptionType”] != DBNull.Value))
this.exceptiontype = (string)reader[“ExceptionType”];
if ((reader[“Details”] != null) && (reader[“Details”] != DBNull.Value))
this.details = (string)reader[“Details”];

this.isNew = false;
}

///

/// Creates an IDbCommand to insert an object into the database.
///

/// An initialized IDbCommand object.
internal virtual IDbCommand CreateInsertCommand()
{
SqlCommand cmd = new SqlCommand();
cmd.CommandText = “insert into [dbo].[aspnet_WebEvent_Events] ([EventId], [EventTimeUtc], [EventTime], [EventType], [EventSequence], [EventOccurrence], [EventCode], [EventDetailCode], [Message], [ApplicationPath], [ApplicationVirtualPath], [MachineName], [RequestUrl], [ExceptionType], [Details]) values (@eventid, @eventtimeutc, @eventtime, @eventtype, @eventsequence, @eventoccurrence, @eventcode, @eventdetailcode, @message, @applicationpath, @applicationvirtualpath, @machinename, @requesturl, @exceptiontype, @details)”;
cmd.Parameters.AddWithValue(“@eventid”, this.eventid);
cmd.Parameters.AddWithValue(“@eventtimeutc”, this.eventtimeutc);
cmd.Parameters.AddWithValue(“@eventtime”, this.eventtime);
cmd.Parameters.AddWithValue(“@eventtype”, this.eventtype);
cmd.Parameters.AddWithValue(“@eventsequence”, this.eventsequence);
cmd.Parameters.AddWithValue(“@eventoccurrence”, this.eventoccurrence);
cmd.Parameters.AddWithValue(“@eventcode”, this.eventcode);
cmd.Parameters.AddWithValue(“@eventdetailcode”, this.eventdetailcode);
if (String.IsNullOrEmpty(this.message))
cmd.Parameters.AddWithValue(“@message”, DBNull.Value);
else
cmd.Parameters.AddWithValue(“@message”, this.message);
if (String.IsNullOrEmpty(this.applicationpath))
cmd.Parameters.AddWithValue(“@applicationpath”, DBNull.Value);
else
cmd.Parameters.AddWithValue(“@applicationpath”, this.applicationpath);
if (String.IsNullOrEmpty(this.applicationvirtualpath))
cmd.Parameters.AddWithValue(“@applicationvirtualpath”, DBNull.Value);
else
cmd.Parameters.AddWithValue(“@applicationvirtualpath”, this.applicationvirtualpath);
cmd.Parameters.AddWithValue(“@machinename”, this.machinename);
if (String.IsNullOrEmpty(this.requesturl))
cmd.Parameters.AddWithValue(“@requesturl”, DBNull.Value);
else
cmd.Parameters.AddWithValue(“@requesturl”, this.requesturl);
if (String.IsNullOrEmpty(this.exceptiontype))
cmd.Parameters.AddWithValue(“@exceptiontype”, DBNull.Value);
else
cmd.Parameters.AddWithValue(“@exceptiontype”, this.exceptiontype);
if (String.IsNullOrEmpty(this.details))
cmd.Parameters.AddWithValue(“@details”, DBNull.Value);
else
cmd.Parameters.AddWithValue(“@details”, this.details);

cmd.Connection = PersistenceManager.Connection;
return cmd;
}

///

/// Creates an IDbCommand to update an object in the database.
///

/// An initialized IDbCommand object.
internal virtual IDbCommand CreateUpdateCommand()
{
SqlCommand cmd = new SqlCommand();
cmd.CommandText = “update [dbo].[aspnet_WebEvent_Events] set [EventTimeUtc]=@eventtimeutc, [EventTime]=@eventtime, [EventType]=@eventtype, [EventSequence]=@eventsequence, [EventOccurrence]=@eventoccurrence, [EventCode]=@eventcode, [EventDetailCode]=@eventdetailcode, [Message]=@message, [ApplicationPath]=@applicationpath, [ApplicationVirtualPath]=@applicationvirtualpath, [MachineName]=@machinename, [RequestUrl]=@requesturl, [ExceptionType]=@exceptiontype, [Details]=@details where ([EventId]=@eventid)”;
cmd.Parameters.AddWithValue(“@eventtimeutc”, this.eventtimeutc);
cmd.Parameters.AddWithValue(“@eventtime”, this.eventtime);
cmd.Parameters.AddWithValue(“@eventtype”, this.eventtype);
cmd.Parameters.AddWithValue(“@eventsequence”, this.eventsequence);
cmd.Parameters.AddWithValue(“@eventoccurrence”, this.eventoccurrence);
cmd.Parameters.AddWithValue(“@eventcode”, this.eventcode);
cmd.Parameters.AddWithValue(“@eventdetailcode”, this.eventdetailcode);
if (String.IsNullOrEmpty(this.message))
cmd.Parameters.AddWithValue(“@message”, DBNull.Value);
else
cmd.Parameters.AddWithValue(“@message”, this.message);
if (String.IsNullOrEmpty(this.applicationpath))
cmd.Parameters.AddWithValue(“@applicationpath”, DBNull.Value);
else
cmd.Parameters.AddWithValue(“@applicationpath”, this.applicationpath);
if (String.IsNullOrEmpty(this.applicationvirtualpath))
cmd.Parameters.AddWithValue(“@applicationvirtualpath”, DBNull.Value);
else
cmd.Parameters.AddWithValue(“@applicationvirtualpath”, this.applicationvirtualpath);
cmd.Parameters.AddWithValue(“@machinename”, this.machinename);
if (String.IsNullOrEmpty(this.requesturl))
cmd.Parameters.AddWithValue(“@requesturl”, DBNull.Value);
else
cmd.Parameters.AddWithValue(“@requesturl”, this.requesturl);
if (String.IsNullOrEmpty(this.exceptiontype))
cmd.Parameters.AddWithValue(“@exceptiontype”, DBNull.Value);
else
cmd.Parameters.AddWithValue(“@exceptiontype”, this.exceptiontype);
if (String.IsNullOrEmpty(this.details))
cmd.Parameters.AddWithValue(“@details”, DBNull.Value);
else
cmd.Parameters.AddWithValue(“@details”, this.details);
cmd.Parameters.AddWithValue(“@eventid”, this.eventid);

cmd.Connection = PersistenceManager.Connection;
return cmd;
}

///

/// Creates an IDbCommand to delete an object in the database.
///

/// An initialized IDbCommand object.
internal virtual IDbCommand CreateDeleteCommand()
{
SqlCommand cmd = new SqlCommand();
cmd.CommandText = “delete from [dbo].[aspnet_WebEvent_Events] where ([EventId]=@eventid)”;
cmd.Parameters.AddWithValue(“@eventid”, this.eventid);

cmd.Connection = PersistenceManager.Connection;
return cmd;
}

///

/// Persists the object.
///

public virtual void Persist()
{
PersistenceManager.InvokeInstanceMethod(this, “PrePersist”, null);

IDbCommand cmd;

if (this.isNew)
cmd = this.CreateInsertCommand();
else
cmd = this.CreateUpdateCommand();

cmd.Transaction = PersistenceManager.Transaction;
PersistenceManager.RegisterInTransaction(this);

bool connWasClosed =
PersistenceManager.Connection.State.Equals(ConnectionState.Closed) ||
PersistenceManager.Connection.State.Equals(ConnectionState.Broken);

try
{
if (connWasClosed)
PersistenceManager.Connection.Open();

cmd.ExecuteNonQuery();

this.isNew = false;

if (connWasClosed)
PersistenceManager.Connection.Close();
}
catch (Exception ex)
{
if (connWasClosed)
PersistenceManager.Connection.Close();
throw ex;
}
}

///

/// Deletes the object.
///

public virtual void Delete()
{
PersistenceManager.InvokeInstanceMethod(this, “PreDelete”, null);

IDbCommand cmd = this.CreateDeleteCommand();
cmd.Transaction = PersistenceManager.Transaction;

bool connWasClosed =
PersistenceManager.Connection.State.Equals(ConnectionState.Closed) ||
PersistenceManager.Connection.State.Equals(ConnectionState.Broken);

try
{
if (connWasClosed)
PersistenceManager.Connection.Open();

cmd.ExecuteNonQuery();

if (connWasClosed)
PersistenceManager.Connection.Close();
}
catch (Exception ex)
{
if (connWasClosed)
PersistenceManager.Connection.Close();
throw ex;
}
}

///

/// Retrieves a AspnetWebeventEvents object by its primary key (Throws System.DataException).
///

/// The Eventid. /// The AspnetWebeventEvents object.
public static AspnetWebeventEvents Get(string eventid)
{
AspnetWebeventEvents aspnetwebeventevents;
if (AspnetWebeventEvents.TryGet(eventid, out aspnetwebeventevents))
return aspnetwebeventevents;
else
throw new DataException(“‘AspnetWebeventEvents’ object not found.”);
}

///

/// Tries to retrieve a AspnetWebeventEvents object by its primary key.
///

/// The Eventid. /// The found AspnetWebeventEvents or null if the primary key value does not exist. /// True if the AspnetWebeventEvents exists, else false.
public static bool TryGet(string eventid, out AspnetWebeventEvents aspnetwebeventevents)
{
SqlCommand cmd = new SqlCommand(“select * from [dbo].[aspnet_WebEvent_Events] where ([EventId]=@eventid)”);
cmd.Parameters.AddWithValue(“@eventid”, eventid);

IList list = AspnetWebeventEvents.Query(cmd);

if (list.Count == 0)
{
aspnetwebeventevents = null;
return false;
}
else
{
aspnetwebeventevents = list[0];
return true;
}
}

///

/// For internal use only.
///

public virtual void SaveState()
{
this._isNew = this.isNew;
}

///

/// For internal use only.
///

public virtual void RestoreState()
{
this.isNew = this._isNew;
}

///

/// Refreshes the internal state of the object.
///

/// This method should be called after xml deserialization to refresh internal flags.
public virtual void RefreshState()
{
AspnetWebeventEvents aspnetwebeventevents;

if (AspnetWebeventEvents.TryGet(this.eventid, out aspnetwebeventevents))
{
this.isNew = false;
}
else
{
this.isNew = true;
}
}

///

/// Returns a Data Transfer Object of this AspnetWebeventEvents.
///

/// A Data Transfer Object of this AspnetWebeventEvents.
public virtual AspnetWebeventEventsDTO GetDTO()
{
AspnetWebeventEventsDTO dto = new AspnetWebeventEventsDTO();

dto.Eventid = this.Eventid;
dto.Eventtimeutc = this.Eventtimeutc;
dto.Eventtime = this.Eventtime;
dto.Eventtype = this.Eventtype;
dto.Eventsequence = this.Eventsequence;
dto.Eventoccurrence = this.Eventoccurrence;
dto.Eventcode = this.Eventcode;
dto.Eventdetailcode = this.Eventdetailcode;
dto.Message = this.Message;
dto.Applicationpath = this.Applicationpath;
dto.Applicationvirtualpath = this.Applicationvirtualpath;
dto.Machinename = this.Machinename;
dto.Requesturl = this.Requesturl;
dto.Exceptiontype = this.Exceptiontype;
dto.Details = this.Details;

return dto;
}

///

/// Applies a Data Transfer Object data to this AspnetWebeventEvents.
///

/// The Data Transfer Object. public virtual void SetDTO(AspnetWebeventEventsDTO dto)
{
this.Eventid = dto.Eventid;
this.Eventtimeutc = dto.Eventtimeutc;
this.Eventtime = dto.Eventtime;
this.Eventtype = dto.Eventtype;
this.Eventsequence = dto.Eventsequence;
this.Eventoccurrence = dto.Eventoccurrence;
this.Eventcode = dto.Eventcode;
this.Eventdetailcode = dto.Eventdetailcode;
this.Message = dto.Message;
this.Applicationpath = dto.Applicationpath;
this.Applicationvirtualpath = dto.Applicationvirtualpath;
this.Machinename = dto.Machinename;
this.Requesturl = dto.Requesturl;
this.Exceptiontype = dto.Exceptiontype;
this.Details = dto.Details;
}

///

/// Perfoms a query on AspnetWebeventEvents objects.
///

/// An IDbCommand containing the select statement. /// A result list of AspnetWebeventEvents objects.
internal static IList Query(IDbCommand command)
{
command.Connection = PersistenceManager.Connection;
command.Transaction = PersistenceManager.Transaction;

bool connWasClosed =
PersistenceManager.Connection.State.Equals(ConnectionState.Closed) ||
PersistenceManager.Connection.State.Equals(ConnectionState.Broken);

try
{
if (connWasClosed)
PersistenceManager.Connection.Open();

List list = new List();
IDataReader reader = command.ExecuteReader();

using (reader)
{
while (reader.Read())
list.Add(new AspnetWebeventEvents(reader));
}

if (connWasClosed)
PersistenceManager.Connection.Close();

return list;
}
catch (Exception ex)
{
if (connWasClosed)
PersistenceManager.Connection.Close();
throw ex;
}
}

///

/// Finds all AspnetWebeventEvents objects with a certain Eventtimeutc value.
///

/// The Eventtimeutc value. /// All AspnetWebeventEvents objects with a certain Eventtimeutc value.
public static IList FindByEventtimeutc(DateTime eventtimeutc)
{
return AspnetWebeventEvents.Query(AspnetWebeventEventsCommands.FindByEventtimeutc(eventtimeutc));
}

///

/// Finds all AspnetWebeventEvents objects with a certain Eventtime value.
///

/// The Eventtime value. /// All AspnetWebeventEvents objects with a certain Eventtime value.
public static IList FindByEventtime(DateTime eventtime)
{
return AspnetWebeventEvents.Query(AspnetWebeventEventsCommands.FindByEventtime(eventtime));
}

///

/// Finds all AspnetWebeventEvents objects with a certain Eventtype value.
///

/// The Eventtype value (‘*’ can be used as a wildcard). /// All AspnetWebeventEvents objects with a certain Eventtype value.
public static IList FindByEventtype(string eventtype)
{
return AspnetWebeventEvents.Query(AspnetWebeventEventsCommands.FindByEventtype(eventtype));
}

///

/// Finds all AspnetWebeventEvents objects with a certain Eventsequence value.
///

/// The Eventsequence value. /// All AspnetWebeventEvents objects with a certain Eventsequence value.
public static IList FindByEventsequence(decimal eventsequence)
{
return AspnetWebeventEvents.Query(AspnetWebeventEventsCommands.FindByEventsequence(eventsequence));
}

///

/// Finds all AspnetWebeventEvents objects with a certain Eventoccurrence value.
///

/// The Eventoccurrence value. /// All AspnetWebeventEvents objects with a certain Eventoccurrence value.
public static IList FindByEventoccurrence(decimal eventoccurrence)
{
return AspnetWebeventEvents.Query(AspnetWebeventEventsCommands.FindByEventoccurrence(eventoccurrence));
}

///

/// Finds all AspnetWebeventEvents objects with a certain Eventcode value.
///

/// The Eventcode value. /// All AspnetWebeventEvents objects with a certain Eventcode value.
public static IList FindByEventcode(int eventcode)
{
return AspnetWebeventEvents.Query(AspnetWebeventEventsCommands.FindByEventcode(eventcode));
}

///

/// Finds all AspnetWebeventEvents objects with a certain Eventdetailcode value.
///

/// The Eventdetailcode value. /// All AspnetWebeventEvents objects with a certain Eventdetailcode value.
public static IList FindByEventdetailcode(int eventdetailcode)
{
return AspnetWebeventEvents.Query(AspnetWebeventEventsCommands.FindByEventdetailcode(eventdetailcode));
}

///

/// Finds all AspnetWebeventEvents objects with a certain Message value.
///

/// The Message value (‘*’ can be used as a wildcard). /// All AspnetWebeventEvents objects with a certain Message value.
public static IList FindByMessage(string message)
{
return AspnetWebeventEvents.Query(AspnetWebeventEventsCommands.FindByMessage(message));
}

///

/// Finds all AspnetWebeventEvents objects with a certain Applicationpath value.
///

/// The Applicationpath value (‘*’ can be used as a wildcard). /// All AspnetWebeventEvents objects with a certain Applicationpath value.
public static IList FindByApplicationpath(string applicationpath)
{
return AspnetWebeventEvents.Query(AspnetWebeventEventsCommands.FindByApplicationpath(applicationpath));
}

///

/// Finds all AspnetWebeventEvents objects with a certain Applicationvirtualpath value.
///

/// The Applicationvirtualpath value (‘*’ can be used as a wildcard). /// All AspnetWebeventEvents objects with a certain Applicationvirtualpath value.
public static IList FindByApplicationvirtualpath(string applicationvirtualpath)
{
return AspnetWebeventEvents.Query(AspnetWebeventEventsCommands.FindByApplicationvirtualpath(applicationvirtualpath));
}

///

/// Finds all AspnetWebeventEvents objects with a certain Machinename value.
///

/// The Machinename value (‘*’ can be used as a wildcard). /// All AspnetWebeventEvents objects with a certain Machinename value.
public static IList FindByMachinename(string machinename)
{
return AspnetWebeventEvents.Query(AspnetWebeventEventsCommands.FindByMachinename(machinename));
}

///

/// Finds all AspnetWebeventEvents objects with a certain Requesturl value.
///

/// The Requesturl value (‘*’ can be used as a wildcard). /// All AspnetWebeventEvents objects with a certain Requesturl value.
public static IList FindByRequesturl(string requesturl)
{
return AspnetWebeventEvents.Query(AspnetWebeventEventsCommands.FindByRequesturl(requesturl));
}

///

/// Finds all AspnetWebeventEvents objects with a certain Exceptiontype value.
///

/// The Exceptiontype value (‘*’ can be used as a wildcard). /// All AspnetWebeventEvents objects with a certain Exceptiontype value.
public static IList FindByExceptiontype(string exceptiontype)
{
return AspnetWebeventEvents.Query(AspnetWebeventEventsCommands.FindByExceptiontype(exceptiontype));
}

///

/// Finds all AspnetWebeventEvents objects with a certain Details value.
///

/// The Details value (‘*’ can be used as a wildcard). /// All AspnetWebeventEvents objects with a certain Details value.
public static IList FindByDetails(string details)
{
return AspnetWebeventEvents.Query(AspnetWebeventEventsCommands.FindByDetails(details));
}

}
}

[/csharp]

Share

Leave a Reply

Your email address will not be published. Required fields are marked *