//------------------------------------------------------------------------------
//
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
//------------------------------------------------------------------------------
namespace AIAHTML5.ADMIN.API.Entity
{
using System;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Data.Objects;
using System.Data.Objects.DataClasses;
using System.Linq;
public partial class AIADatabaseV5Entities : DbContext
{
public AIADatabaseV5Entities()
: base("name=AIADatabaseV5Entities")
{
}
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
throw new UnintentionalCodeFirstException();
}
public DbSet AccountTypes { get; set; }
public DbSet AIAUsers { get; set; }
public DbSet Editions { get; set; }
public DbSet UserTypes { get; set; }
[EdmFunction("AIADatabaseV5Entities", "fnSplit")]
public virtual IQueryable fnSplit(string sInputList, string sDelimiter)
{
var sInputListParameter = sInputList != null ?
new ObjectParameter("sInputList", sInputList) :
new ObjectParameter("sInputList", typeof(string));
var sDelimiterParameter = sDelimiter != null ?
new ObjectParameter("sDelimiter", sDelimiter) :
new ObjectParameter("sDelimiter", typeof(string));
return ((IObjectContextAdapter)this).ObjectContext.CreateQuery("[AIADatabaseV5Entities].[fnSplit](@sInputList, @sDelimiter)", sInputListParameter, sDelimiterParameter);
}
[EdmFunction("AIADatabaseV5Entities", "udf_SplitString")]
public virtual IQueryable udf_SplitString(string list)
{
var listParameter = list != null ?
new ObjectParameter("List", list) :
new ObjectParameter("List", typeof(string));
return ((IObjectContextAdapter)this).ObjectContext.CreateQuery("[AIADatabaseV5Entities].[udf_SplitString](@List)", listParameter);
}
public virtual int abc(Nullable userId, string labExerciseIdentifier, Nullable lastQuestion, Nullable totalQuestions)
{
var userIdParameter = userId.HasValue ?
new ObjectParameter("UserId", userId) :
new ObjectParameter("UserId", typeof(int));
var labExerciseIdentifierParameter = labExerciseIdentifier != null ?
new ObjectParameter("LabExerciseIdentifier", labExerciseIdentifier) :
new ObjectParameter("LabExerciseIdentifier", typeof(string));
var lastQuestionParameter = lastQuestion.HasValue ?
new ObjectParameter("LastQuestion", lastQuestion) :
new ObjectParameter("LastQuestion", typeof(int));
var totalQuestionsParameter = totalQuestions.HasValue ?
new ObjectParameter("TotalQuestions", totalQuestions) :
new ObjectParameter("TotalQuestions", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("abc", userIdParameter, labExerciseIdentifierParameter, lastQuestionParameter, totalQuestionsParameter);
}
public virtual int ClearSessionManager(string sSessionId)
{
var sSessionIdParameter = sSessionId != null ?
new ObjectParameter("sSessionId", sSessionId) :
new ObjectParameter("sSessionId", typeof(string));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("ClearSessionManager", sSessionIdParameter);
}
public virtual ObjectResult DA_GetBackGroundArtList(Nullable body_view_id, string sex)
{
var body_view_idParameter = body_view_id.HasValue ?
new ObjectParameter("body_view_id", body_view_id) :
new ObjectParameter("body_view_id", typeof(int));
var sexParameter = sex != null ?
new ObjectParameter("sex", sex) :
new ObjectParameter("sex", typeof(string));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DA_GetBackGroundArtList", body_view_idParameter, sexParameter);
}
public virtual ObjectResult DA_GetBaseLayer(Nullable layer_id)
{
var layer_idParameter = layer_id.HasValue ?
new ObjectParameter("layer_id", layer_id) :
new ObjectParameter("layer_id", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DA_GetBaseLayer", layer_idParameter);
}
public virtual ObjectResult DA_GetBitmask(Nullable image_id, Nullable zoom)
{
var image_idParameter = image_id.HasValue ?
new ObjectParameter("image_id", image_id) :
new ObjectParameter("image_id", typeof(int));
var zoomParameter = zoom.HasValue ?
new ObjectParameter("zoom", zoom) :
new ObjectParameter("zoom", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DA_GetBitmask", image_idParameter, zoomParameter);
}
public virtual ObjectResult DA_GetBodyRegion()
{
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DA_GetBodyRegion");
}
public virtual ObjectResult DA_GetBodyRegionList()
{
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DA_GetBodyRegionList");
}
public virtual ObjectResult DA_GetBodyRegionView()
{
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DA_GetBodyRegionView");
}
public virtual ObjectResult DA_GetBodyRegionViewList()
{
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DA_GetBodyRegionViewList");
}
public virtual ObjectResult DA_GetDissectibleContent()
{
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DA_GetDissectibleContent");
}
public virtual ObjectResult DA_GetGenderList()
{
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DA_GetGenderList");
}
public virtual ObjectResult DA_GetLayerdata(Nullable body_view_id, string sex)
{
var body_view_idParameter = body_view_id.HasValue ?
new ObjectParameter("body_view_id", body_view_id) :
new ObjectParameter("body_view_id", typeof(int));
var sexParameter = sex != null ?
new ObjectParameter("sex", sex) :
new ObjectParameter("sex", typeof(string));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DA_GetLayerdata", body_view_idParameter, sexParameter);
}
public virtual ObjectResult DA_GetLayerModel(Nullable body_view_id, string sex)
{
var body_view_idParameter = body_view_id.HasValue ?
new ObjectParameter("body_view_id", body_view_id) :
new ObjectParameter("body_view_id", typeof(int));
var sexParameter = sex != null ?
new ObjectParameter("sex", sex) :
new ObjectParameter("sex", typeof(string));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DA_GetLayerModel", body_view_idParameter, sexParameter);
}
public virtual ObjectResult DA_GetLexiconTermList(string lexicon_id)
{
var lexicon_idParameter = lexicon_id != null ?
new ObjectParameter("lexicon_id", lexicon_id) :
new ObjectParameter("lexicon_id", typeof(string));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DA_GetLexiconTermList", lexicon_idParameter);
}
public virtual ObjectResult DA_GetNavigatorModel(Nullable content_descriptor_id)
{
var content_descriptor_idParameter = content_descriptor_id.HasValue ?
new ObjectParameter("content_descriptor_id", content_descriptor_id) :
new ObjectParameter("content_descriptor_id", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DA_GetNavigatorModel", content_descriptor_idParameter);
}
public virtual ObjectResult DA_GetOverLayLayerList(Nullable body_view_id, string sex)
{
var body_view_idParameter = body_view_id.HasValue ?
new ObjectParameter("body_view_id", body_view_id) :
new ObjectParameter("body_view_id", typeof(int));
var sexParameter = sex != null ?
new ObjectParameter("sex", sex) :
new ObjectParameter("sex", typeof(string));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DA_GetOverLayLayerList", body_view_idParameter, sexParameter);
}
public virtual ObjectResult DA_GetPLRModel(Nullable structure_group_id)
{
var structure_group_idParameter = structure_group_id.HasValue ?
new ObjectParameter("structure_group_id", structure_group_id) :
new ObjectParameter("structure_group_id", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DA_GetPLRModel", structure_group_idParameter);
}
public virtual ObjectResult DA_GetPolygonForId(Nullable polygon_id, Nullable zoom)
{
var polygon_idParameter = polygon_id.HasValue ?
new ObjectParameter("polygon_id", polygon_id) :
new ObjectParameter("polygon_id", typeof(int));
var zoomParameter = zoom.HasValue ?
new ObjectParameter("zoom", zoom) :
new ObjectParameter("zoom", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DA_GetPolygonForId", polygon_idParameter, zoomParameter);
}
public virtual ObjectResult DA_GetStructureGroupId(Nullable structure_group_id)
{
var structure_group_idParameter = structure_group_id.HasValue ?
new ObjectParameter("structure_group_id", structure_group_id) :
new ObjectParameter("structure_group_id", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DA_GetStructureGroupId", structure_group_idParameter);
}
public virtual ObjectResult DA_GetStructureGroupList()
{
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DA_GetStructureGroupList");
}
public virtual ObjectResult DA_GetStructureList(Nullable dissectible_struct_group_id, Nullable vocab_lexicon_id)
{
var dissectible_struct_group_idParameter = dissectible_struct_group_id.HasValue ?
new ObjectParameter("dissectible_struct_group_id", dissectible_struct_group_id) :
new ObjectParameter("dissectible_struct_group_id", typeof(int));
var vocab_lexicon_idParameter = vocab_lexicon_id.HasValue ?
new ObjectParameter("vocab_lexicon_id", vocab_lexicon_id) :
new ObjectParameter("vocab_lexicon_id", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DA_GetStructureList", dissectible_struct_group_idParameter, vocab_lexicon_idParameter);
}
public virtual ObjectResult DA_GetTermList(string lexicon_id, Nullable structure_group_id, Nullable layer_number_internal)
{
var lexicon_idParameter = lexicon_id != null ?
new ObjectParameter("lexicon_id", lexicon_id) :
new ObjectParameter("lexicon_id", typeof(string));
var structure_group_idParameter = structure_group_id.HasValue ?
new ObjectParameter("structure_group_id", structure_group_id) :
new ObjectParameter("structure_group_id", typeof(int));
var layer_number_internalParameter = layer_number_internal.HasValue ?
new ObjectParameter("layer_number_internal", layer_number_internal) :
new ObjectParameter("layer_number_internal", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DA_GetTermList", lexicon_idParameter, structure_group_idParameter, layer_number_internalParameter);
}
public virtual ObjectResult> DA_GetTermNumberForContentId(Nullable dissectible_content_id)
{
var dissectible_content_idParameter = dissectible_content_id.HasValue ?
new ObjectParameter("dissectible_content_id", dissectible_content_id) :
new ObjectParameter("dissectible_content_id", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction>("DA_GetTermNumberForContentId", dissectible_content_idParameter);
}
public virtual ObjectResult DA_GetViewOrientation()
{
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DA_GetViewOrientation");
}
public virtual ObjectResult DA_GetViewOrientationList()
{
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DA_GetViewOrientationList");
}
public virtual ObjectResult DA_GetVocabTermModal(Nullable lexiconID)
{
var lexiconIDParameter = lexiconID.HasValue ?
new ObjectParameter("lexiconID", lexiconID) :
new ObjectParameter("lexiconID", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DA_GetVocabTermModal", lexiconIDParameter);
}
public virtual ObjectResult> DA_LayerNumberInternal(Nullable structure_group_id, Nullable layer_number_internal)
{
var structure_group_idParameter = structure_group_id.HasValue ?
new ObjectParameter("structure_group_id", structure_group_id) :
new ObjectParameter("structure_group_id", typeof(int));
var layer_number_internalParameter = layer_number_internal.HasValue ?
new ObjectParameter("layer_number_internal", layer_number_internal) :
new ObjectParameter("layer_number_internal", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction>("DA_LayerNumberInternal", structure_group_idParameter, layer_number_internalParameter);
}
public virtual int DeleteIncorrectLoginAttempts(Nullable iUserId)
{
var iUserIdParameter = iUserId.HasValue ?
new ObjectParameter("iUserId", iUserId) :
new ObjectParameter("iUserId", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DeleteIncorrectLoginAttempts", iUserIdParameter);
}
public virtual ObjectResult DeleteLicense(Nullable iLicenseId)
{
var iLicenseIdParameter = iLicenseId.HasValue ?
new ObjectParameter("iLicenseId", iLicenseId) :
new ObjectParameter("iLicenseId", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DeleteLicense", iLicenseIdParameter);
}
public virtual int DeleteUserSession(string sSessionId)
{
var sSessionIdParameter = sSessionId != null ?
new ObjectParameter("sSessionId", sSessionId) :
new ObjectParameter("sSessionId", typeof(string));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DeleteUserSession", sSessionIdParameter);
}
public virtual int EC_CreateUser(string sAccountNumber, string sLicenseeFirstName, string sLicenseeLastName, string sInstitutionName, string sAddress1, string sAddress2, Nullable iCountryId, Nullable iStateId, string sCity, string sZip, string sPhone, string sEmailId, Nullable tiAccountTypeId, Nullable bIsActive, Nullable dtCreationDate, ObjectParameter ioutId, Nullable siSubscriptionPlanId, Nullable dtSubscriptionValidFrom, Nullable dtSubscriptionValidThrough, string sPaymentMode, Nullable mTotalAmount, Nullable mAmountPaid, Nullable mAmountPending, Nullable siClassSize, Nullable iInstitutionType, string sDepartment, Nullable iAIARequired, string sCourses, Nullable iCoursesConduct, Nullable iReferedBy, Nullable iInternetProduct, Nullable iMultimediaProduct, string sOtherAdamProduct, Nullable bIsOtherAdamProduct, string sLoginId, string sPassword, string sFirstName, string sLastName, Nullable tiSecurityQuestionId, string sSecurityAnswer, Nullable dtDeactivationDate, ObjectParameter ioutUserId, Nullable tiEditionId, string sStudentID, ObjectParameter ioutLicenseEditionId, string sVersion, Nullable iCardNumber, Nullable iDiscountCodeId, Nullable desDiscountPercentage, Nullable iAod, Nullable iLite)
{
var sAccountNumberParameter = sAccountNumber != null ?
new ObjectParameter("sAccountNumber", sAccountNumber) :
new ObjectParameter("sAccountNumber", typeof(string));
var sLicenseeFirstNameParameter = sLicenseeFirstName != null ?
new ObjectParameter("sLicenseeFirstName", sLicenseeFirstName) :
new ObjectParameter("sLicenseeFirstName", typeof(string));
var sLicenseeLastNameParameter = sLicenseeLastName != null ?
new ObjectParameter("sLicenseeLastName", sLicenseeLastName) :
new ObjectParameter("sLicenseeLastName", typeof(string));
var sInstitutionNameParameter = sInstitutionName != null ?
new ObjectParameter("sInstitutionName", sInstitutionName) :
new ObjectParameter("sInstitutionName", typeof(string));
var sAddress1Parameter = sAddress1 != null ?
new ObjectParameter("sAddress1", sAddress1) :
new ObjectParameter("sAddress1", typeof(string));
var sAddress2Parameter = sAddress2 != null ?
new ObjectParameter("sAddress2", sAddress2) :
new ObjectParameter("sAddress2", typeof(string));
var iCountryIdParameter = iCountryId.HasValue ?
new ObjectParameter("iCountryId", iCountryId) :
new ObjectParameter("iCountryId", typeof(int));
var iStateIdParameter = iStateId.HasValue ?
new ObjectParameter("iStateId", iStateId) :
new ObjectParameter("iStateId", typeof(int));
var sCityParameter = sCity != null ?
new ObjectParameter("sCity", sCity) :
new ObjectParameter("sCity", typeof(string));
var sZipParameter = sZip != null ?
new ObjectParameter("sZip", sZip) :
new ObjectParameter("sZip", typeof(string));
var sPhoneParameter = sPhone != null ?
new ObjectParameter("sPhone", sPhone) :
new ObjectParameter("sPhone", typeof(string));
var sEmailIdParameter = sEmailId != null ?
new ObjectParameter("sEmailId", sEmailId) :
new ObjectParameter("sEmailId", typeof(string));
var tiAccountTypeIdParameter = tiAccountTypeId.HasValue ?
new ObjectParameter("tiAccountTypeId", tiAccountTypeId) :
new ObjectParameter("tiAccountTypeId", typeof(byte));
var bIsActiveParameter = bIsActive.HasValue ?
new ObjectParameter("bIsActive", bIsActive) :
new ObjectParameter("bIsActive", typeof(bool));
var dtCreationDateParameter = dtCreationDate.HasValue ?
new ObjectParameter("dtCreationDate", dtCreationDate) :
new ObjectParameter("dtCreationDate", typeof(System.DateTime));
var siSubscriptionPlanIdParameter = siSubscriptionPlanId.HasValue ?
new ObjectParameter("siSubscriptionPlanId", siSubscriptionPlanId) :
new ObjectParameter("siSubscriptionPlanId", typeof(short));
var dtSubscriptionValidFromParameter = dtSubscriptionValidFrom.HasValue ?
new ObjectParameter("dtSubscriptionValidFrom", dtSubscriptionValidFrom) :
new ObjectParameter("dtSubscriptionValidFrom", typeof(System.DateTime));
var dtSubscriptionValidThroughParameter = dtSubscriptionValidThrough.HasValue ?
new ObjectParameter("dtSubscriptionValidThrough", dtSubscriptionValidThrough) :
new ObjectParameter("dtSubscriptionValidThrough", typeof(System.DateTime));
var sPaymentModeParameter = sPaymentMode != null ?
new ObjectParameter("sPaymentMode", sPaymentMode) :
new ObjectParameter("sPaymentMode", typeof(string));
var mTotalAmountParameter = mTotalAmount.HasValue ?
new ObjectParameter("mTotalAmount", mTotalAmount) :
new ObjectParameter("mTotalAmount", typeof(decimal));
var mAmountPaidParameter = mAmountPaid.HasValue ?
new ObjectParameter("mAmountPaid", mAmountPaid) :
new ObjectParameter("mAmountPaid", typeof(decimal));
var mAmountPendingParameter = mAmountPending.HasValue ?
new ObjectParameter("mAmountPending", mAmountPending) :
new ObjectParameter("mAmountPending", typeof(decimal));
var siClassSizeParameter = siClassSize.HasValue ?
new ObjectParameter("siClassSize", siClassSize) :
new ObjectParameter("siClassSize", typeof(short));
var iInstitutionTypeParameter = iInstitutionType.HasValue ?
new ObjectParameter("iInstitutionType", iInstitutionType) :
new ObjectParameter("iInstitutionType", typeof(int));
var sDepartmentParameter = sDepartment != null ?
new ObjectParameter("sDepartment", sDepartment) :
new ObjectParameter("sDepartment", typeof(string));
var iAIARequiredParameter = iAIARequired.HasValue ?
new ObjectParameter("iAIARequired", iAIARequired) :
new ObjectParameter("iAIARequired", typeof(int));
var sCoursesParameter = sCourses != null ?
new ObjectParameter("sCourses", sCourses) :
new ObjectParameter("sCourses", typeof(string));
var iCoursesConductParameter = iCoursesConduct.HasValue ?
new ObjectParameter("iCoursesConduct", iCoursesConduct) :
new ObjectParameter("iCoursesConduct", typeof(int));
var iReferedByParameter = iReferedBy.HasValue ?
new ObjectParameter("iReferedBy", iReferedBy) :
new ObjectParameter("iReferedBy", typeof(int));
var iInternetProductParameter = iInternetProduct.HasValue ?
new ObjectParameter("iInternetProduct", iInternetProduct) :
new ObjectParameter("iInternetProduct", typeof(int));
var iMultimediaProductParameter = iMultimediaProduct.HasValue ?
new ObjectParameter("iMultimediaProduct", iMultimediaProduct) :
new ObjectParameter("iMultimediaProduct", typeof(int));
var sOtherAdamProductParameter = sOtherAdamProduct != null ?
new ObjectParameter("sOtherAdamProduct", sOtherAdamProduct) :
new ObjectParameter("sOtherAdamProduct", typeof(string));
var bIsOtherAdamProductParameter = bIsOtherAdamProduct.HasValue ?
new ObjectParameter("bIsOtherAdamProduct", bIsOtherAdamProduct) :
new ObjectParameter("bIsOtherAdamProduct", typeof(bool));
var sLoginIdParameter = sLoginId != null ?
new ObjectParameter("sLoginId", sLoginId) :
new ObjectParameter("sLoginId", typeof(string));
var sPasswordParameter = sPassword != null ?
new ObjectParameter("sPassword", sPassword) :
new ObjectParameter("sPassword", typeof(string));
var sFirstNameParameter = sFirstName != null ?
new ObjectParameter("sFirstName", sFirstName) :
new ObjectParameter("sFirstName", typeof(string));
var sLastNameParameter = sLastName != null ?
new ObjectParameter("sLastName", sLastName) :
new ObjectParameter("sLastName", typeof(string));
var tiSecurityQuestionIdParameter = tiSecurityQuestionId.HasValue ?
new ObjectParameter("tiSecurityQuestionId", tiSecurityQuestionId) :
new ObjectParameter("tiSecurityQuestionId", typeof(byte));
var sSecurityAnswerParameter = sSecurityAnswer != null ?
new ObjectParameter("sSecurityAnswer", sSecurityAnswer) :
new ObjectParameter("sSecurityAnswer", typeof(string));
var dtDeactivationDateParameter = dtDeactivationDate.HasValue ?
new ObjectParameter("dtDeactivationDate", dtDeactivationDate) :
new ObjectParameter("dtDeactivationDate", typeof(System.DateTime));
var tiEditionIdParameter = tiEditionId.HasValue ?
new ObjectParameter("tiEditionId", tiEditionId) :
new ObjectParameter("tiEditionId", typeof(byte));
var sStudentIDParameter = sStudentID != null ?
new ObjectParameter("sStudentID", sStudentID) :
new ObjectParameter("sStudentID", typeof(string));
var sVersionParameter = sVersion != null ?
new ObjectParameter("sVersion", sVersion) :
new ObjectParameter("sVersion", typeof(string));
var iCardNumberParameter = iCardNumber.HasValue ?
new ObjectParameter("iCardNumber", iCardNumber) :
new ObjectParameter("iCardNumber", typeof(int));
var iDiscountCodeIdParameter = iDiscountCodeId.HasValue ?
new ObjectParameter("iDiscountCodeId", iDiscountCodeId) :
new ObjectParameter("iDiscountCodeId", typeof(int));
var desDiscountPercentageParameter = desDiscountPercentage.HasValue ?
new ObjectParameter("desDiscountPercentage", desDiscountPercentage) :
new ObjectParameter("desDiscountPercentage", typeof(decimal));
var iAodParameter = iAod.HasValue ?
new ObjectParameter("iAod", iAod) :
new ObjectParameter("iAod", typeof(bool));
var iLiteParameter = iLite.HasValue ?
new ObjectParameter("iLite", iLite) :
new ObjectParameter("iLite", typeof(bool));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("EC_CreateUser", sAccountNumberParameter, sLicenseeFirstNameParameter, sLicenseeLastNameParameter, sInstitutionNameParameter, sAddress1Parameter, sAddress2Parameter, iCountryIdParameter, iStateIdParameter, sCityParameter, sZipParameter, sPhoneParameter, sEmailIdParameter, tiAccountTypeIdParameter, bIsActiveParameter, dtCreationDateParameter, ioutId, siSubscriptionPlanIdParameter, dtSubscriptionValidFromParameter, dtSubscriptionValidThroughParameter, sPaymentModeParameter, mTotalAmountParameter, mAmountPaidParameter, mAmountPendingParameter, siClassSizeParameter, iInstitutionTypeParameter, sDepartmentParameter, iAIARequiredParameter, sCoursesParameter, iCoursesConductParameter, iReferedByParameter, iInternetProductParameter, iMultimediaProductParameter, sOtherAdamProductParameter, bIsOtherAdamProductParameter, sLoginIdParameter, sPasswordParameter, sFirstNameParameter, sLastNameParameter, tiSecurityQuestionIdParameter, sSecurityAnswerParameter, dtDeactivationDateParameter, ioutUserId, tiEditionIdParameter, sStudentIDParameter, ioutLicenseEditionId, sVersionParameter, iCardNumberParameter, iDiscountCodeIdParameter, desDiscountPercentageParameter, iAodParameter, iLiteParameter);
}
public virtual ObjectResult EC_GetAccountTypeList()
{
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("EC_GetAccountTypeList");
}
public virtual ObjectResult EC_GetCountryList()
{
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("EC_GetCountryList");
}
public virtual ObjectResult EC_GetCourseConductedList()
{
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("EC_GetCourseConductedList");
}
public virtual ObjectResult EC_GetInstitutionList()
{
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("EC_GetInstitutionList");
}
public virtual ObjectResult EC_GetInternetProductList()
{
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("EC_GetInternetProductList");
}
public virtual ObjectResult EC_GetMultimediaProductList()
{
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("EC_GetMultimediaProductList");
}
public virtual ObjectResult EC_GetProductRequiredList()
{
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("EC_GetProductRequiredList");
}
public virtual ObjectResult EC_GetReferList()
{
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("EC_GetReferList");
}
public virtual ObjectResult EC_GetSecurityQuestionList()
{
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("EC_GetSecurityQuestionList");
}
public virtual ObjectResult EC_GetStateList()
{
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("EC_GetStateList");
}
public virtual ObjectResult> EC_GetSubscriptionDuration(Nullable siSubscriptionId)
{
var siSubscriptionIdParameter = siSubscriptionId.HasValue ?
new ObjectParameter("siSubscriptionId", siSubscriptionId) :
new ObjectParameter("siSubscriptionId", typeof(short));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction>("EC_GetSubscriptionDuration", siSubscriptionIdParameter);
}
public virtual ObjectResult> EC_GetSubscriptionEndDate(Nullable tiDuration)
{
var tiDurationParameter = tiDuration.HasValue ?
new ObjectParameter("tiDuration", tiDuration) :
new ObjectParameter("tiDuration", typeof(byte));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction>("EC_GetSubscriptionEndDate", tiDurationParameter);
}
public virtual ObjectResult EC_GetSubscriptionPlan(Nullable iEditioId, Nullable iDuration)
{
var iEditioIdParameter = iEditioId.HasValue ?
new ObjectParameter("iEditioId", iEditioId) :
new ObjectParameter("iEditioId", typeof(byte));
var iDurationParameter = iDuration.HasValue ?
new ObjectParameter("iDuration", iDuration) :
new ObjectParameter("iDuration", typeof(byte));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("EC_GetSubscriptionPlan", iEditioIdParameter, iDurationParameter);
}
public virtual ObjectResult EC_GetSubscriptionPlanInfo(Nullable iEditioId, Nullable iDuration, Nullable rowId)
{
var iEditioIdParameter = iEditioId.HasValue ?
new ObjectParameter("iEditioId", iEditioId) :
new ObjectParameter("iEditioId", typeof(byte));
var iDurationParameter = iDuration.HasValue ?
new ObjectParameter("iDuration", iDuration) :
new ObjectParameter("iDuration", typeof(byte));
var rowIdParameter = rowId.HasValue ?
new ObjectParameter("rowId", rowId) :
new ObjectParameter("rowId", typeof(byte));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("EC_GetSubscriptionPlanInfo", iEditioIdParameter, iDurationParameter, rowIdParameter);
}
public virtual ObjectResult> EC_GetSubscriptionPrice(Nullable siSubscriptionId)
{
var siSubscriptionIdParameter = siSubscriptionId.HasValue ?
new ObjectParameter("siSubscriptionId", siSubscriptionId) :
new ObjectParameter("siSubscriptionId", typeof(short));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction>("EC_GetSubscriptionPrice", siSubscriptionIdParameter);
}
public virtual int EC_GetUsername(string sUserName)
{
var sUserNameParameter = sUserName != null ?
new ObjectParameter("sUserName", sUserName) :
new ObjectParameter("sUserName", typeof(string));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("EC_GetUsername", sUserNameParameter);
}
public virtual int EC_InsertPaymentTransaction(string iTransactionId, string iEditionId, string iSubscriptionPlanId, string iUserId, string sFirstName, string sLastName, string sStreet, string sCity, string sState, string sZip, string sCountry, string sEmail, Nullable sAmount, string sPaymentStatus)
{
var iTransactionIdParameter = iTransactionId != null ?
new ObjectParameter("iTransactionId", iTransactionId) :
new ObjectParameter("iTransactionId", typeof(string));
var iEditionIdParameter = iEditionId != null ?
new ObjectParameter("iEditionId", iEditionId) :
new ObjectParameter("iEditionId", typeof(string));
var iSubscriptionPlanIdParameter = iSubscriptionPlanId != null ?
new ObjectParameter("iSubscriptionPlanId", iSubscriptionPlanId) :
new ObjectParameter("iSubscriptionPlanId", typeof(string));
var iUserIdParameter = iUserId != null ?
new ObjectParameter("iUserId", iUserId) :
new ObjectParameter("iUserId", typeof(string));
var sFirstNameParameter = sFirstName != null ?
new ObjectParameter("sFirstName", sFirstName) :
new ObjectParameter("sFirstName", typeof(string));
var sLastNameParameter = sLastName != null ?
new ObjectParameter("sLastName", sLastName) :
new ObjectParameter("sLastName", typeof(string));
var sStreetParameter = sStreet != null ?
new ObjectParameter("sStreet", sStreet) :
new ObjectParameter("sStreet", typeof(string));
var sCityParameter = sCity != null ?
new ObjectParameter("sCity", sCity) :
new ObjectParameter("sCity", typeof(string));
var sStateParameter = sState != null ?
new ObjectParameter("sState", sState) :
new ObjectParameter("sState", typeof(string));
var sZipParameter = sZip != null ?
new ObjectParameter("sZip", sZip) :
new ObjectParameter("sZip", typeof(string));
var sCountryParameter = sCountry != null ?
new ObjectParameter("sCountry", sCountry) :
new ObjectParameter("sCountry", typeof(string));
var sEmailParameter = sEmail != null ?
new ObjectParameter("sEmail", sEmail) :
new ObjectParameter("sEmail", typeof(string));
var sAmountParameter = sAmount.HasValue ?
new ObjectParameter("sAmount", sAmount) :
new ObjectParameter("sAmount", typeof(decimal));
var sPaymentStatusParameter = sPaymentStatus != null ?
new ObjectParameter("sPaymentStatus", sPaymentStatus) :
new ObjectParameter("sPaymentStatus", typeof(string));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("EC_InsertPaymentTransaction", iTransactionIdParameter, iEditionIdParameter, iSubscriptionPlanIdParameter, iUserIdParameter, sFirstNameParameter, sLastNameParameter, sStreetParameter, sCityParameter, sStateParameter, sZipParameter, sCountryParameter, sEmailParameter, sAmountParameter, sPaymentStatusParameter);
}
public virtual int EC_UpdateUser(string sLoginID, Nullable sAmountPaid, Nullable sAmountPending)
{
var sLoginIDParameter = sLoginID != null ?
new ObjectParameter("sLoginID", sLoginID) :
new ObjectParameter("sLoginID", typeof(string));
var sAmountPaidParameter = sAmountPaid.HasValue ?
new ObjectParameter("sAmountPaid", sAmountPaid) :
new ObjectParameter("sAmountPaid", typeof(decimal));
var sAmountPendingParameter = sAmountPending.HasValue ?
new ObjectParameter("sAmountPending", sAmountPending) :
new ObjectParameter("sAmountPending", typeof(decimal));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("EC_UpdateUser", sLoginIDParameter, sAmountPaidParameter, sAmountPendingParameter);
}
public virtual ObjectResult GetAccountModule(Nullable licenseId)
{
var licenseIdParameter = licenseId.HasValue ?
new ObjectParameter("LicenseId", licenseId) :
new ObjectParameter("LicenseId", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetAccountModule", licenseIdParameter);
}
public virtual ObjectResult GetAIALicenseDetails(string sStartDate, string sEndDate, string sAccoutNumber, string sLicenseeFirstName, string sLicenseeLastName, Nullable iLicenseTypeId, string sInstituteName, string sEmail, Nullable iStateId, Nullable iCountryId, Nullable bisActive)
{
var sStartDateParameter = sStartDate != null ?
new ObjectParameter("sStartDate", sStartDate) :
new ObjectParameter("sStartDate", typeof(string));
var sEndDateParameter = sEndDate != null ?
new ObjectParameter("sEndDate", sEndDate) :
new ObjectParameter("sEndDate", typeof(string));
var sAccoutNumberParameter = sAccoutNumber != null ?
new ObjectParameter("sAccoutNumber", sAccoutNumber) :
new ObjectParameter("sAccoutNumber", typeof(string));
var sLicenseeFirstNameParameter = sLicenseeFirstName != null ?
new ObjectParameter("sLicenseeFirstName", sLicenseeFirstName) :
new ObjectParameter("sLicenseeFirstName", typeof(string));
var sLicenseeLastNameParameter = sLicenseeLastName != null ?
new ObjectParameter("sLicenseeLastName", sLicenseeLastName) :
new ObjectParameter("sLicenseeLastName", typeof(string));
var iLicenseTypeIdParameter = iLicenseTypeId.HasValue ?
new ObjectParameter("iLicenseTypeId", iLicenseTypeId) :
new ObjectParameter("iLicenseTypeId", typeof(byte));
var sInstituteNameParameter = sInstituteName != null ?
new ObjectParameter("sInstituteName", sInstituteName) :
new ObjectParameter("sInstituteName", typeof(string));
var sEmailParameter = sEmail != null ?
new ObjectParameter("sEmail", sEmail) :
new ObjectParameter("sEmail", typeof(string));
var iStateIdParameter = iStateId.HasValue ?
new ObjectParameter("iStateId", iStateId) :
new ObjectParameter("iStateId", typeof(int));
var iCountryIdParameter = iCountryId.HasValue ?
new ObjectParameter("iCountryId", iCountryId) :
new ObjectParameter("iCountryId", typeof(int));
var bisActiveParameter = bisActive.HasValue ?
new ObjectParameter("bisActive", bisActive) :
new ObjectParameter("bisActive", typeof(bool));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetAIALicenseDetails", sStartDateParameter, sEndDateParameter, sAccoutNumberParameter, sLicenseeFirstNameParameter, sLicenseeLastNameParameter, iLicenseTypeIdParameter, sInstituteNameParameter, sEmailParameter, iStateIdParameter, iCountryIdParameter, bisActiveParameter);
}
public virtual ObjectResult GetAllEditionForLicense(Nullable iLicenseId)
{
var iLicenseIdParameter = iLicenseId.HasValue ?
new ObjectParameter("iLicenseId", iLicenseId) :
new ObjectParameter("iLicenseId", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetAllEditionForLicense", iLicenseIdParameter);
}
public virtual ObjectResult GetAllLoginFailureCauses()
{
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetAllLoginFailureCauses");
}
public virtual ObjectResult GetAllModuleStatus()
{
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetAllModuleStatus");
}
public virtual ObjectResult GetAllModuleStatusWithSlug()
{
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetAllModuleStatusWithSlug");
}
public virtual ObjectResult GetAllUserWithGroup(Nullable iLicenseId, Nullable iGroupId)
{
var iLicenseIdParameter = iLicenseId.HasValue ?
new ObjectParameter("iLicenseId", iLicenseId) :
new ObjectParameter("iLicenseId", typeof(int));
var iGroupIdParameter = iGroupId.HasValue ?
new ObjectParameter("iGroupId", iGroupId) :
new ObjectParameter("iGroupId", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetAllUserWithGroup", iLicenseIdParameter, iGroupIdParameter);
}
public virtual ObjectResult GetAttributeTypeList(Nullable iContentTypeId)
{
var iContentTypeIdParameter = iContentTypeId.HasValue ?
new ObjectParameter("iContentTypeId", iContentTypeId) :
new ObjectParameter("iContentTypeId", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetAttributeTypeList", iContentTypeIdParameter);
}
public virtual ObjectResult GetAttributeValueList(Nullable iContentTypeId, Nullable iAttributeTypeId)
{
var iContentTypeIdParameter = iContentTypeId.HasValue ?
new ObjectParameter("iContentTypeId", iContentTypeId) :
new ObjectParameter("iContentTypeId", typeof(int));
var iAttributeTypeIdParameter = iAttributeTypeId.HasValue ?
new ObjectParameter("iAttributeTypeId", iAttributeTypeId) :
new ObjectParameter("iAttributeTypeId", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetAttributeValueList", iContentTypeIdParameter, iAttributeTypeIdParameter);
}
public virtual ObjectResult GetBlockedUserByAccNoAndType(Nullable iUserTypeId, Nullable iLicenseId)
{
var iUserTypeIdParameter = iUserTypeId.HasValue ?
new ObjectParameter("iUserTypeId", iUserTypeId) :
new ObjectParameter("iUserTypeId", typeof(byte));
var iLicenseIdParameter = iLicenseId.HasValue ?
new ObjectParameter("iLicenseId", iLicenseId) :
new ObjectParameter("iLicenseId", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetBlockedUserByAccNoAndType", iUserTypeIdParameter, iLicenseIdParameter);
}
public virtual ObjectResult GetBlockedUserByUserId(Nullable userId)
{
var userIdParameter = userId.HasValue ?
new ObjectParameter("userId", userId) :
new ObjectParameter("userId", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetBlockedUserByUserId", userIdParameter);
}
public virtual ObjectResult GetBlockedUserByUserType(Nullable iUserTypeId)
{
var iUserTypeIdParameter = iUserTypeId.HasValue ?
new ObjectParameter("iUserTypeId", iUserTypeId) :
new ObjectParameter("iUserTypeId", typeof(byte));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetBlockedUserByUserType", iUserTypeIdParameter);
}
public virtual int GetBlockedUserDetailsByUserIdAndUserTypeId(Nullable userId, Nullable userTypeId, Nullable licenseId)
{
var userIdParameter = userId.HasValue ?
new ObjectParameter("userId", userId) :
new ObjectParameter("userId", typeof(int));
var userTypeIdParameter = userTypeId.HasValue ?
new ObjectParameter("userTypeId", userTypeId) :
new ObjectParameter("userTypeId", typeof(byte));
var licenseIdParameter = licenseId.HasValue ?
new ObjectParameter("licenseId", licenseId) :
new ObjectParameter("licenseId", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetBlockedUserDetailsByUserIdAndUserTypeId", userIdParameter, userTypeIdParameter, licenseIdParameter);
}
public virtual ObjectResult GetCAMSearch(string sSearchKeyword)
{
var sSearchKeywordParameter = sSearchKeyword != null ?
new ObjectParameter("sSearchKeyword", sSearchKeyword) :
new ObjectParameter("sSearchKeyword", typeof(string));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetCAMSearch", sSearchKeywordParameter);
}
public virtual ObjectResult GetCancelledLicenses(string sFromDate, string sToDate, Nullable iStartPrice, Nullable iEndPrice, Nullable iLicenseTypeId, Nullable iAccountTypeId, string sZip, Nullable iStateId, Nullable iCountryId, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
{
var sFromDateParameter = sFromDate != null ?
new ObjectParameter("sFromDate", sFromDate) :
new ObjectParameter("sFromDate", typeof(string));
var sToDateParameter = sToDate != null ?
new ObjectParameter("sToDate", sToDate) :
new ObjectParameter("sToDate", typeof(string));
var iStartPriceParameter = iStartPrice.HasValue ?
new ObjectParameter("iStartPrice", iStartPrice) :
new ObjectParameter("iStartPrice", typeof(decimal));
var iEndPriceParameter = iEndPrice.HasValue ?
new ObjectParameter("iEndPrice", iEndPrice) :
new ObjectParameter("iEndPrice", typeof(decimal));
var iLicenseTypeIdParameter = iLicenseTypeId.HasValue ?
new ObjectParameter("iLicenseTypeId", iLicenseTypeId) :
new ObjectParameter("iLicenseTypeId", typeof(byte));
var iAccountTypeIdParameter = iAccountTypeId.HasValue ?
new ObjectParameter("iAccountTypeId", iAccountTypeId) :
new ObjectParameter("iAccountTypeId", typeof(byte));
var sZipParameter = sZip != null ?
new ObjectParameter("sZip", sZip) :
new ObjectParameter("sZip", typeof(string));
var iStateIdParameter = iStateId.HasValue ?
new ObjectParameter("iStateId", iStateId) :
new ObjectParameter("iStateId", typeof(int));
var iCountryIdParameter = iCountryId.HasValue ?
new ObjectParameter("iCountryId", iCountryId) :
new ObjectParameter("iCountryId", typeof(int));
var pageNoParameter = pageNo.HasValue ?
new ObjectParameter("pageNo", pageNo) :
new ObjectParameter("pageNo", typeof(int));
var pageLengthParameter = pageLength.HasValue ?
new ObjectParameter("pageLength", pageLength) :
new ObjectParameter("pageLength", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetCancelledLicenses", sFromDateParameter, sToDateParameter, iStartPriceParameter, iEndPriceParameter, iLicenseTypeIdParameter, iAccountTypeIdParameter, sZipParameter, iStateIdParameter, iCountryIdParameter, pageNoParameter, pageLengthParameter, recordCount);
}
public virtual int GetContentAttributeData(Nullable iContentTypeId)
{
var iContentTypeIdParameter = iContentTypeId.HasValue ?
new ObjectParameter("iContentTypeId", iContentTypeId) :
new ObjectParameter("iContentTypeId", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetContentAttributeData", iContentTypeIdParameter);
}
public virtual int GetContentList(Nullable iContentTypeId)
{
var iContentTypeIdParameter = iContentTypeId.HasValue ?
new ObjectParameter("iContentTypeId", iContentTypeId) :
new ObjectParameter("iContentTypeId", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetContentList", iContentTypeIdParameter);
}
public virtual ObjectResult GetCustomerSummary(string sAccoutNumber, string sLicenseeFullName, Nullable iStartPrice, Nullable iEndPrice, Nullable iLicenseType, Nullable iAccountType, string sZip, Nullable iState, Nullable iCountry, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
{
var sAccoutNumberParameter = sAccoutNumber != null ?
new ObjectParameter("sAccoutNumber", sAccoutNumber) :
new ObjectParameter("sAccoutNumber", typeof(string));
var sLicenseeFullNameParameter = sLicenseeFullName != null ?
new ObjectParameter("sLicenseeFullName", sLicenseeFullName) :
new ObjectParameter("sLicenseeFullName", typeof(string));
var iStartPriceParameter = iStartPrice.HasValue ?
new ObjectParameter("iStartPrice", iStartPrice) :
new ObjectParameter("iStartPrice", typeof(decimal));
var iEndPriceParameter = iEndPrice.HasValue ?
new ObjectParameter("iEndPrice", iEndPrice) :
new ObjectParameter("iEndPrice", typeof(decimal));
var iLicenseTypeParameter = iLicenseType.HasValue ?
new ObjectParameter("iLicenseType", iLicenseType) :
new ObjectParameter("iLicenseType", typeof(byte));
var iAccountTypeParameter = iAccountType.HasValue ?
new ObjectParameter("iAccountType", iAccountType) :
new ObjectParameter("iAccountType", typeof(byte));
var sZipParameter = sZip != null ?
new ObjectParameter("sZip", sZip) :
new ObjectParameter("sZip", typeof(string));
var iStateParameter = iState.HasValue ?
new ObjectParameter("iState", iState) :
new ObjectParameter("iState", typeof(int));
var iCountryParameter = iCountry.HasValue ?
new ObjectParameter("iCountry", iCountry) :
new ObjectParameter("iCountry", typeof(int));
var pageNoParameter = pageNo.HasValue ?
new ObjectParameter("pageNo", pageNo) :
new ObjectParameter("pageNo", typeof(int));
var pageLengthParameter = pageLength.HasValue ?
new ObjectParameter("pageLength", pageLength) :
new ObjectParameter("pageLength", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetCustomerSummary", sAccoutNumberParameter, sLicenseeFullNameParameter, iStartPriceParameter, iEndPriceParameter, iLicenseTypeParameter, iAccountTypeParameter, sZipParameter, iStateParameter, iCountryParameter, pageNoParameter, pageLengthParameter, recordCount);
}
public virtual ObjectResult GetDiscountCodes(string sDiscountCode, string sStartDate, string sEndDate, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
{
var sDiscountCodeParameter = sDiscountCode != null ?
new ObjectParameter("sDiscountCode", sDiscountCode) :
new ObjectParameter("sDiscountCode", typeof(string));
var sStartDateParameter = sStartDate != null ?
new ObjectParameter("sStartDate", sStartDate) :
new ObjectParameter("sStartDate", typeof(string));
var sEndDateParameter = sEndDate != null ?
new ObjectParameter("sEndDate", sEndDate) :
new ObjectParameter("sEndDate", typeof(string));
var pageNoParameter = pageNo.HasValue ?
new ObjectParameter("pageNo", pageNo) :
new ObjectParameter("pageNo", typeof(int));
var pageLengthParameter = pageLength.HasValue ?
new ObjectParameter("pageLength", pageLength) :
new ObjectParameter("pageLength", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetDiscountCodes", sDiscountCodeParameter, sStartDateParameter, sEndDateParameter, pageNoParameter, pageLengthParameter, recordCount);
}
public virtual ObjectResult GetDiscountDetails(string sDiscountCode, string sStartDate, string sEndDate)
{
var sDiscountCodeParameter = sDiscountCode != null ?
new ObjectParameter("sDiscountCode", sDiscountCode) :
new ObjectParameter("sDiscountCode", typeof(string));
var sStartDateParameter = sStartDate != null ?
new ObjectParameter("sStartDate", sStartDate) :
new ObjectParameter("sStartDate", typeof(string));
var sEndDateParameter = sEndDate != null ?
new ObjectParameter("sEndDate", sEndDate) :
new ObjectParameter("sEndDate", typeof(string));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetDiscountDetails", sDiscountCodeParameter, sStartDateParameter, sEndDateParameter);
}
public virtual ObjectResult GetDiscountedPrice(string inDiscountCode, ObjectParameter outReturnCode, ObjectParameter outDiscountPercentage, ObjectParameter outDiscountCodeId)
{
var inDiscountCodeParameter = inDiscountCode != null ?
new ObjectParameter("inDiscountCode", inDiscountCode) :
new ObjectParameter("inDiscountCode", typeof(string));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetDiscountedPrice", inDiscountCodeParameter, outReturnCode, outDiscountPercentage, outDiscountCodeId);
}
public virtual ObjectResult GetDiscountReport(string sStartDate, string sEndDate, Nullable intDiscountID, string sAccoutNumber, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
{
var sStartDateParameter = sStartDate != null ?
new ObjectParameter("sStartDate", sStartDate) :
new ObjectParameter("sStartDate", typeof(string));
var sEndDateParameter = sEndDate != null ?
new ObjectParameter("sEndDate", sEndDate) :
new ObjectParameter("sEndDate", typeof(string));
var intDiscountIDParameter = intDiscountID.HasValue ?
new ObjectParameter("intDiscountID", intDiscountID) :
new ObjectParameter("intDiscountID", typeof(int));
var sAccoutNumberParameter = sAccoutNumber != null ?
new ObjectParameter("sAccoutNumber", sAccoutNumber) :
new ObjectParameter("sAccoutNumber", typeof(string));
var pageNoParameter = pageNo.HasValue ?
new ObjectParameter("pageNo", pageNo) :
new ObjectParameter("pageNo", typeof(int));
var pageLengthParameter = pageLength.HasValue ?
new ObjectParameter("pageLength", pageLength) :
new ObjectParameter("pageLength", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetDiscountReport", sStartDateParameter, sEndDateParameter, intDiscountIDParameter, sAccoutNumberParameter, pageNoParameter, pageLengthParameter, recordCount);
}
public virtual ObjectResult getEditionData()
{
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("getEditionData");
}
public virtual ObjectResult GetEditionsBySiteAccount(Nullable intSiteId, string strAccountNumber)
{
var intSiteIdParameter = intSiteId.HasValue ?
new ObjectParameter("intSiteId", intSiteId) :
new ObjectParameter("intSiteId", typeof(int));
var strAccountNumberParameter = strAccountNumber != null ?
new ObjectParameter("strAccountNumber", strAccountNumber) :
new ObjectParameter("strAccountNumber", typeof(string));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetEditionsBySiteAccount", intSiteIdParameter, strAccountNumberParameter);
}
public virtual ObjectResult GetEncyclopediaSearch(Nullable iLexiconId, string sSearchKeyword)
{
var iLexiconIdParameter = iLexiconId.HasValue ?
new ObjectParameter("iLexiconId", iLexiconId) :
new ObjectParameter("iLexiconId", typeof(int));
var sSearchKeywordParameter = sSearchKeyword != null ?
new ObjectParameter("sSearchKeyword", sSearchKeyword) :
new ObjectParameter("sSearchKeyword", typeof(string));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetEncyclopediaSearch", iLexiconIdParameter, sSearchKeywordParameter);
}
public virtual ObjectResult GetExpiringLicenses(string sFromDate, string sToDate, Nullable iStartPrice, Nullable iEndPrice, Nullable iLicenseTypeId, Nullable iAccountTypeId, string sZip, Nullable iStateId, Nullable iCountryId, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
{
var sFromDateParameter = sFromDate != null ?
new ObjectParameter("sFromDate", sFromDate) :
new ObjectParameter("sFromDate", typeof(string));
var sToDateParameter = sToDate != null ?
new ObjectParameter("sToDate", sToDate) :
new ObjectParameter("sToDate", typeof(string));
var iStartPriceParameter = iStartPrice.HasValue ?
new ObjectParameter("iStartPrice", iStartPrice) :
new ObjectParameter("iStartPrice", typeof(decimal));
var iEndPriceParameter = iEndPrice.HasValue ?
new ObjectParameter("iEndPrice", iEndPrice) :
new ObjectParameter("iEndPrice", typeof(decimal));
var iLicenseTypeIdParameter = iLicenseTypeId.HasValue ?
new ObjectParameter("iLicenseTypeId", iLicenseTypeId) :
new ObjectParameter("iLicenseTypeId", typeof(int));
var iAccountTypeIdParameter = iAccountTypeId.HasValue ?
new ObjectParameter("iAccountTypeId", iAccountTypeId) :
new ObjectParameter("iAccountTypeId", typeof(int));
var sZipParameter = sZip != null ?
new ObjectParameter("sZip", sZip) :
new ObjectParameter("sZip", typeof(string));
var iStateIdParameter = iStateId.HasValue ?
new ObjectParameter("iStateId", iStateId) :
new ObjectParameter("iStateId", typeof(int));
var iCountryIdParameter = iCountryId.HasValue ?
new ObjectParameter("iCountryId", iCountryId) :
new ObjectParameter("iCountryId", typeof(int));
var pageNoParameter = pageNo.HasValue ?
new ObjectParameter("pageNo", pageNo) :
new ObjectParameter("pageNo", typeof(int));
var pageLengthParameter = pageLength.HasValue ?
new ObjectParameter("pageLength", pageLength) :
new ObjectParameter("pageLength", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetExpiringLicenses", sFromDateParameter, sToDateParameter, iStartPriceParameter, iEndPriceParameter, iLicenseTypeIdParameter, iAccountTypeIdParameter, sZipParameter, iStateIdParameter, iCountryIdParameter, pageNoParameter, pageLengthParameter, recordCount);
}
public virtual ObjectResult GetExportedImageDetails(string sStartDate, string sEndDate, string sAccoutNumber, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
{
var sStartDateParameter = sStartDate != null ?
new ObjectParameter("sStartDate", sStartDate) :
new ObjectParameter("sStartDate", typeof(string));
var sEndDateParameter = sEndDate != null ?
new ObjectParameter("sEndDate", sEndDate) :
new ObjectParameter("sEndDate", typeof(string));
var sAccoutNumberParameter = sAccoutNumber != null ?
new ObjectParameter("sAccoutNumber", sAccoutNumber) :
new ObjectParameter("sAccoutNumber", typeof(string));
var pageNoParameter = pageNo.HasValue ?
new ObjectParameter("pageNo", pageNo) :
new ObjectParameter("pageNo", typeof(int));
var pageLengthParameter = pageLength.HasValue ?
new ObjectParameter("pageLength", pageLength) :
new ObjectParameter("pageLength", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetExportedImageDetails", sStartDateParameter, sEndDateParameter, sAccoutNumberParameter, pageNoParameter, pageLengthParameter, recordCount);
}
public virtual int GetImagePinData()
{
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetImagePinData");
}
public virtual ObjectResult