//------------------------------------------------------------------------------
//
// 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
{
using System;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Data.Entity.Core.Objects;
using System.Linq;
public partial class AIADatabaseV5Entities : DbContext
{
public AIADatabaseV5Entities()
: base("name=AIADatabaseV5Entities")
{
}
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
throw new UnintentionalCodeFirstException();
}
public virtual DbSet AccountTypes { get; set; }
public virtual DbSet Activities { get; set; }
public virtual DbSet AIARequireds { get; set; }
public virtual DbSet AIAUsers { get; set; }
public virtual DbSet AIAUserActivities { get; set; }
public virtual DbSet CAMMetadatas { get; set; }
public virtual DbSet ContentAttributes { get; set; }
public virtual DbSet ContentAttributeTypes { get; set; }
public virtual DbSet ContentDescriptors { get; set; }
public virtual DbSet ContentMimeTypes { get; set; }
public virtual DbSet ContentTypes { get; set; }
public virtual DbSet Countries { get; set; }
public virtual DbSet CourseConducts { get; set; }
public virtual DbSet Discounts { get; set; }
public virtual DbSet DissectibleBitmasks { get; set; }
public virtual DbSet DissectibleBodyViews { get; set; }
public virtual DbSet DissectibleBodyViewBackgroundArts { get; set; }
public virtual DbSet DissectibleContents { get; set; }
public virtual DbSet DissectibleLayers { get; set; }
public virtual DbSet DissectibleNavigatorImages { get; set; }
public virtual DbSet DissectiblePolygons { get; set; }
public virtual DbSet DissectiblePolygonVertices { get; set; }
public virtual DbSet DissectibleRegions { get; set; }
public virtual DbSet DissectibleRegionLayerArts { get; set; }
public virtual DbSet DissectibleRegionLayerBaseMapArts { get; set; }
public virtual DbSet DissectibleRegionLayerMappings { get; set; }
public virtual DbSet DissectibleRegionViews { get; set; }
public virtual DbSet DissectibleStructureGroups { get; set; }
public virtual DbSet DissectibleStructures { get; set; }
public virtual DbSet Editions { get; set; }
public virtual DbSet EditionToProductFeatures { get; set; }
public virtual DbSet EditionToSubscriptionPlans { get; set; }
public virtual DbSet IncorrectLoginAttempts { get; set; }
public virtual DbSet InDepthMetadatas { get; set; }
public virtual DbSet Institutions { get; set; }
public virtual DbSet InternetProducts { get; set; }
public virtual DbSet Licenses { get; set; }
public virtual DbSet LicenseSubscriptionDetails { get; set; }
public virtual DbSet LicenseToEditions { get; set; }
public virtual DbSet LicenseTypes { get; set; }
public virtual DbSet LoginDetails { get; set; }
public virtual DbSet LoginFailureCauses { get; set; }
public virtual DbSet ModuleToLicenses { get; set; }
public virtual DbSet MultimediaProducts { get; set; }
public virtual DbSet PaymentTransactionDetails { get; set; }
public virtual DbSet ProductFeatures { get; set; }
public virtual DbSet Refers { get; set; }
public virtual DbSet ResourceModules { get; set; }
public virtual DbSet Roles { get; set; }
public virtual DbSet RoleToActivities { get; set; }
public virtual DbSet SecurityQuestions { get; set; }
public virtual DbSet SessionManagers { get; set; }
public virtual DbSet Sexes { get; set; }
public virtual DbSet Sites { get; set; }
public virtual DbSet States { get; set; }
public virtual DbSet SubscriptionPlans { get; set; }
public virtual DbSet sysdiagrams { get; set; }
public virtual DbSet UserGroups { get; set; }
public virtual DbSet UserLoginLogs { get; set; }
public virtual DbSet UserTypes { get; set; }
public virtual DbSet VocabLexicons { get; set; }
public virtual DbSet VocabSystems { get; set; }
public virtual DbSet VocabSystemsNumbers { get; set; }
public virtual DbSet VocabTermNumbers { get; set; }
public virtual DbSet VocabTerms { get; set; }
public virtual DbSet VocabViews { get; set; }
public virtual DbSet VocabViewsNumbers { get; set; }
public virtual DbSet AdamImageContents { get; set; }
public virtual DbSet AnnotationPins { get; set; }
public virtual DbSet AtlasOrientImages { get; set; }
public virtual DbSet CAMWeightages { get; set; }
public virtual DbSet Contents { get; set; }
public virtual DbSet ContentDescriptorToPhraseMaps { get; set; }
public virtual DbSet ContentTypeToAttributeTypeMaps { get; set; }
public virtual DbSet DiscountToLicenses { get; set; }
public virtual DbSet EncyclopediaMetadatas { get; set; }
public virtual DbSet EncyclopediaWeightages { get; set; }
public virtual DbSet ImageContents { get; set; }
public virtual DbSet InDepthWeightages { get; set; }
public virtual DbSet LabExercises { get; set; }
public virtual DbSet LabExerciseDetails { get; set; }
public virtual DbSet LicenseImageExportDetails { get; set; }
public virtual DbSet SearchPhrases { get; set; }
public virtual DbSet SingleUserDetails { get; set; }
public virtual DbSet SiteDetails { get; set; }
public virtual DbSet SiteToLicenseEditions { get; set; }
public virtual DbSet ThreeDTermsToHighLights { get; set; }
public virtual DbSet VocabTermNumberToSystemMaps { get; set; }
[DbFunction("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);
}
[DbFunction("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 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