namespace EventOrganizerTableAdapters
{
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 ResourceDescription, string ResourceColor)
{
this.Connection.Open();
try
{
this.Insert(ResourceName, ResourceDescription, ResourceColor);
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 CategoryDescription, string CategoryColor)
{
this.Connection.Open();
try
{
this.Insert(CategoryName, CategoryDescription, CategoryColor);
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 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 ClientName, string EventDescription, 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, string Location, string Notes, global::System.Nullable<int> TotalAttendees) {
this.Connection.Open();
try
{
this.Insert(RecurrenceID, CategoryID, ResourceID, ParentID, Mode, ClientName, EventDescription,
AllDayEvent, StartTime, EndTime, ExceptionDate, ExceptionInfo, ReminderTimeSpan, Location, Notes, TotalAttendees);
OleDbCommand command = new OleDbCommand();
command.CommandText = "SELECT @@IDENTITY";
command.Connection = this.Connection;
return (int)command.ExecuteScalar();
}
finally
{
this.Connection.Close();
}
}
}
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 ClientName, string EventDescription, bool AllDayEvent,
global::System.Nullable<global::system.datetime> StartTime, global::System.Nullable<global::system.datetime> EndTime,
global::System.Nullable<int> ReminderTimeSpan, string Location, string Notes, global::System.Nullable<int> TotalAttendees)
{
this.Connection.Open();
try
{
this.Insert(CategoryID, ResourceID, Mode, ClientName, EventDescription, AllDayEvent, StartTime, EndTime, ReminderTimeSpan, Location, Notes, TotalAttendees); OleDbCommand command = new OleDbCommand();
command.CommandText = "SELECT @@IDENTITY";
command.Connection = this.Connection;
return (int)command.ExecuteScalar();
}
finally
{
this.Connection.Close();
}
}
}
}
|