using System.Data.OleDb;
namespace WebScheduler_MoviesTableAdapters
{
public partial class EventsTableAdapter : global::System.ComponentModel.Component
{
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
public virtual int Insert(int EventID, string CategoryID, global::System.Nullable<int> ResourceID, global::System.Nullable<int> Mode, string Subject,
string Description, string Location, bool AllDayEvent,
global::System.Nullable<global::System.DateTime> StartTime,
global::System.Nullable<global::System.DateTime> EndTime, global::System.Nullable<int> ReminderTimeSpan)
{
this.Connection.Open();
try
{
this.Insert(CategoryID, ResourceID, Mode, Subject, Description, Location, AllDayEvent, StartTime, EndTime, ReminderTimeSpan);
OleDbCommand command = new OleDbCommand();
command.CommandText = "SELECT @@IDENTITY";
command.Connection = this.Connection;
return (int)command.ExecuteScalar();
}
finally
{
this.Connection.Close();
}
}
}
public partial class RecurringEventsTableAdapter : global::System.ComponentModel.Component
{
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
public virtual int Insert(int EventID, global::System.Nullable<int> RecurrenceID, string CategoryID, global::System.Nullable<int> ResourceID,
global::System.Nullable<int> ParentID, global::System.Nullable<int> Mode, string Subject, string Description, string Location, bool AllDayEvent,
global::System.Nullable<global::System.DateTime> StartTime, global::System.Nullable<global::System.DateTime> EndTime,
global::System.Nullable<global::System.DateTime> ExceptionDate, global::System.Nullable<int> ExceptionInfo, global::System.Nullable<int> ReminderTimeSpan)
{
this.Connection.Open();
try
{
this.Insert(RecurrenceID, CategoryID, ResourceID, ParentID, Mode, Subject, Description, Location, AllDayEvent, StartTime, EndTime, ExceptionDate, ExceptionInfo, ReminderTimeSpan);
OleDbCommand command = new OleDbCommand();
command.CommandText = "SELECT @@IDENTITY";
command.Connection = this.Connection;
return (int)command.ExecuteScalar();
}
finally
{
this.Connection.Close();
}
}
}
public partial class RecurrenceInfoTableAdapter : global::System.ComponentModel.Component
{
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
public virtual int Insert(int RecurrenceID, global::System.Nullable<int> Mode, global::System.Nullable<int> RangeMode,
global::System.Nullable<global::System.DateTime> StartDate, global::System.Nullable<global::System.DateTime> EndDate,
global::System.Nullable<int> TotalRecurrences, global::System.Nullable<int> NDay, global::System.Nullable<int> NWeek,
global::System.Nullable<int> NMonth, global::System.Nullable<int> NYear, string WeekDays)
{
this.Connection.Open();
try
{
this.Insert(Mode, RangeMode, StartDate, EndDate, TotalRecurrences, NDay, NWeek, NMonth, NYear, WeekDays);
OleDbCommand command = new OleDbCommand();
command.CommandText = "SELECT @@IDENTITY";
command.Connection = this.Connection;
return (int)command.ExecuteScalar();
}
finally
{
this.Connection.Close();
}
}
}
public partial class CategoriesTableAdapter : global::System.ComponentModel.Component
{
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
public virtual int Insert(int CategoryID, string CategoryName, string Description, string CategoryColor)
{
this.Connection.Open();
try
{
this.Insert(CategoryName, Description, CategoryColor);
OleDbCommand command = new OleDbCommand();
command.CommandText = "SELECT @@IDENTITY";
command.Connection = this.Connection;
return (int)command.ExecuteScalar();
}
finally
{
this.Connection.Close();
}
}
}
public partial class ResourcesTableAdapter : global::System.ComponentModel.Component
{
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
public virtual int Insert(int ResourceID, string ResourceName, string Description, string Location, string ResourceColor)
{
this.Connection.Open();
try
{
this.Insert(ResourceName, Description, Location, ResourceColor);
OleDbCommand command = new OleDbCommand();
command.CommandText = "SELECT @@IDENTITY";
command.Connection = this.Connection;
return (int)command.ExecuteScalar();
}
finally
{
this.Connection.Close();
}
}
}
}
|