//------------------------------------------------------------------------------ // // 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 Activities { get; set; } public DbSet AIARequireds { get; set; } public DbSet AIAUsers { get; set; } public DbSet AIAUserActivities { get; set; } public DbSet CAMMetadatas { get; set; } public DbSet ContentAttributes { get; set; } public DbSet ContentAttributeTypes { get; set; } public DbSet ContentDescriptors { get; set; } public DbSet ContentMimeTypes { get; set; } public DbSet ContentTypes { get; set; } public DbSet Countries { get; set; } public DbSet CourseConducts { get; set; } public DbSet Discounts { get; set; } public DbSet DissectibleBitmasks { get; set; } public DbSet DissectibleBodyViews { get; set; } public DbSet DissectibleBodyViewBackgroundArts { get; set; } public DbSet DissectibleContents { get; set; } public DbSet DissectibleLayers { get; set; } public DbSet DissectibleNavigatorImages { get; set; } public DbSet DissectiblePolygons { get; set; } public DbSet DissectiblePolygonVertices { get; set; } public DbSet DissectibleRegions { get; set; } public DbSet DissectibleRegionLayerArts { get; set; } public DbSet DissectibleRegionLayerBaseMapArts { get; set; } public DbSet DissectibleRegionLayerMappings { get; set; } public DbSet DissectibleRegionViews { get; set; } public DbSet DissectibleStructureGroups { get; set; } public DbSet DissectibleStructures { get; set; } public DbSet Editions { get; set; } public DbSet EditionToProductFeatures { get; set; } public DbSet EditionToSubscriptionPlans { get; set; } public DbSet IncorrectLoginAttempts { get; set; } public DbSet InDepthMetadatas { get; set; } public DbSet Institutions { get; set; } public DbSet InternetProducts { get; set; } public DbSet Licenses { get; set; } public DbSet LicenseSubscriptionDetails { get; set; } public DbSet LicenseToEditions { get; set; } public DbSet LicenseTypes { get; set; } public DbSet LoginDetails { get; set; } public DbSet LoginFailureCauses { get; set; } public DbSet ModuleToLicenses { get; set; } public DbSet MultimediaProducts { get; set; } public DbSet PaymentTransactionDetails { get; set; } public DbSet ProductFeatures { get; set; } public DbSet Refers { get; set; } public DbSet ResourceModules { get; set; } public DbSet Roles { get; set; } public DbSet RoleToActivities { get; set; } public DbSet SecurityQuestions { get; set; } public DbSet SessionManagers { get; set; } public DbSet Sexes { get; set; } public DbSet Sites { get; set; } public DbSet States { get; set; } public DbSet SubscriptionPlans { get; set; } public DbSet sysdiagrams { get; set; } public DbSet UserGroups { get; set; } public DbSet UserLoginLogs { get; set; } public DbSet UserTypes { get; set; } public DbSet VocabLexicons { get; set; } public DbSet VocabSystems { get; set; } public DbSet VocabSystemsNumbers { get; set; } public DbSet VocabTermNumbers { get; set; } public DbSet VocabTerms { get; set; } public DbSet VocabViews { get; set; } public DbSet VocabViewsNumbers { get; set; } public DbSet AdamImageContents { get; set; } public DbSet AnnotationPins { get; set; } public DbSet AtlasOrientImages { get; set; } public DbSet CAMWeightages { get; set; } public DbSet Contents { get; set; } public DbSet ContentDescriptorToPhraseMaps { get; set; } public DbSet ContentTypeToAttributeTypeMaps { get; set; } public DbSet DiscountToLicenses { get; set; } public DbSet EncyclopediaMetadatas { get; set; } public DbSet EncyclopediaWeightages { get; set; } public DbSet ImageContents { get; set; } public DbSet InDepthWeightages { get; set; } public DbSet LabExercises { get; set; } public DbSet LabExerciseDetails { get; set; } public DbSet LicenseImageExportDetails { get; set; } public DbSet SearchPhrases { get; set; } public DbSet SingleUserDetails { get; set; } public DbSet SiteDetails { get; set; } public DbSet SiteToLicenseEditions { get; set; } public DbSet ThreeDTermsToHighLights { get; set; } public DbSet VocabTermNumberToSystemMaps { 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 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) { 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)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetCancelledLicenses", sFromDateParameter, sToDateParameter, iStartPriceParameter, iEndPriceParameter, iLicenseTypeIdParameter, iAccountTypeIdParameter, sZipParameter, iStateIdParameter, iCountryIdParameter); } 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) { 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)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetCustomerSummary", sAccoutNumberParameter, sLicenseeFullNameParameter, iStartPriceParameter, iEndPriceParameter, iLicenseTypeParameter, iAccountTypeParameter, sZipParameter, iStateParameter, iCountryParameter); } 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) { 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)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetDiscountReport", sStartDateParameter, sEndDateParameter, intDiscountIDParameter, sAccoutNumberParameter); } 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) { 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)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetExpiringLicenses", sFromDateParameter, sToDateParameter, iStartPriceParameter, iEndPriceParameter, iLicenseTypeIdParameter, iAccountTypeIdParameter, sZipParameter, iStateIdParameter, iCountryIdParameter); } public virtual ObjectResult GetExportedImageDetails(string sStartDate, string sEndDate, string sAccoutNumber) { 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)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetExportedImageDetails", sStartDateParameter, sEndDateParameter, sAccoutNumberParameter); } public virtual int GetImagePinData() { return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetImagePinData"); } public virtual ObjectResult> GetIncorrectLoginAttempt(Nullable iUserId) { var iUserIdParameter = iUserId.HasValue ? new ObjectParameter("iUserId", iUserId) : new ObjectParameter("iUserId", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction>("GetIncorrectLoginAttempt", iUserIdParameter); } public virtual ObjectResult GetInDepthSearch(string sSearchKeyword) { var sSearchKeywordParameter = sSearchKeyword != null ? new ObjectParameter("sSearchKeyword", sSearchKeyword) : new ObjectParameter("sSearchKeyword", typeof(string)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetInDepthSearch", sSearchKeywordParameter); } public virtual ObjectResult GetLabExcerciseByUserId(Nullable userId, string identifier) { var userIdParameter = userId.HasValue ? new ObjectParameter("UserId", userId) : new ObjectParameter("UserId", typeof(int)); var identifierParameter = identifier != null ? new ObjectParameter("Identifier", identifier) : new ObjectParameter("Identifier", typeof(string)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetLabExcerciseByUserId", userIdParameter, identifierParameter); } public virtual ObjectResult GetLicenseByIPAndAccount(string sSiteIP, string sAccountNumber, Nullable iEditionId) { var sSiteIPParameter = sSiteIP != null ? new ObjectParameter("sSiteIP", sSiteIP) : new ObjectParameter("sSiteIP", typeof(string)); var sAccountNumberParameter = sAccountNumber != null ? new ObjectParameter("sAccountNumber", sAccountNumber) : new ObjectParameter("sAccountNumber", typeof(string)); var iEditionIdParameter = iEditionId.HasValue ? new ObjectParameter("iEditionId", iEditionId) : new ObjectParameter("iEditionId", typeof(byte)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetLicenseByIPAndAccount", sSiteIPParameter, sAccountNumberParameter, iEditionIdParameter); } public virtual ObjectResult GetLicenseBySiteId(Nullable sSiteId) { var sSiteIdParameter = sSiteId.HasValue ? new ObjectParameter("sSiteId", sSiteId) : new ObjectParameter("sSiteId", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetLicenseBySiteId", sSiteIdParameter); } public virtual ObjectResult GetLicenseDetailByUserId(Nullable iUserId) { var iUserIdParameter = iUserId.HasValue ? new ObjectParameter("iUserId", iUserId) : new ObjectParameter("iUserId", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetLicenseDetailByUserId", iUserIdParameter); } public virtual ObjectResult GetLicenseDetailsById(Nullable id) { var idParameter = id.HasValue ? new ObjectParameter("Id", id) : new ObjectParameter("Id", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetLicenseDetailsById", idParameter); } public virtual ObjectResult> GetLicenseEditionIdByUserId(Nullable userId) { var userIdParameter = userId.HasValue ? new ObjectParameter("UserId", userId) : new ObjectParameter("UserId", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction>("GetLicenseEditionIdByUserId", userIdParameter); } public virtual ObjectResult> GetLicenseEditionIdForUser(Nullable userId) { var userIdParameter = userId.HasValue ? new ObjectParameter("UserId", userId) : new ObjectParameter("UserId", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction>("GetLicenseEditionIdForUser", userIdParameter); } public virtual ObjectResult GetLicenseEditionsForModesty(Nullable iLicenseId, Nullable iBuildingLevelId) { var iLicenseIdParameter = iLicenseId.HasValue ? new ObjectParameter("iLicenseId", iLicenseId) : new ObjectParameter("iLicenseId", typeof(int)); var iBuildingLevelIdParameter = iBuildingLevelId.HasValue ? new ObjectParameter("iBuildingLevelId", iBuildingLevelId) : new ObjectParameter("iBuildingLevelId", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetLicenseEditionsForModesty", iLicenseIdParameter, iBuildingLevelIdParameter); } public virtual ObjectResult GetLicenseIdBySiteUrl(string sLicenseAccount, Nullable iEditionId) { var sLicenseAccountParameter = sLicenseAccount != null ? new ObjectParameter("sLicenseAccount", sLicenseAccount) : new ObjectParameter("sLicenseAccount", typeof(string)); var iEditionIdParameter = iEditionId.HasValue ? new ObjectParameter("iEditionId", iEditionId) : new ObjectParameter("iEditionId", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetLicenseIdBySiteUrl", sLicenseAccountParameter, iEditionIdParameter); } public virtual ObjectResult> GetLicenseIdByUserId(Nullable iUserId) { var iUserIdParameter = iUserId.HasValue ? new ObjectParameter("iUserId", iUserId) : new ObjectParameter("iUserId", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction>("GetLicenseIdByUserId", iUserIdParameter); } public virtual ObjectResult GetLicenseIdEditionIdByUserId(Nullable iUserId) { var iUserIdParameter = iUserId.HasValue ? new ObjectParameter("iUserId", iUserId) : new ObjectParameter("iUserId", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetLicenseIdEditionIdByUserId", iUserIdParameter); } public virtual ObjectResult GetLoginFailureErrorReport(string sFromDate, string sToDate, string sAccoutNumber, Nullable sFailureCause) { 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 sAccoutNumberParameter = sAccoutNumber != null ? new ObjectParameter("sAccoutNumber", sAccoutNumber) : new ObjectParameter("sAccoutNumber", typeof(string)); var sFailureCauseParameter = sFailureCause.HasValue ? new ObjectParameter("sFailureCause", sFailureCause) : new ObjectParameter("sFailureCause", typeof(byte)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetLoginFailureErrorReport", sFromDateParameter, sToDateParameter, sAccoutNumberParameter, sFailureCauseParameter); } public virtual ObjectResult GetModulesByUserId(Nullable iUserId) { var iUserIdParameter = iUserId.HasValue ? new ObjectParameter("iUserId", iUserId) : new ObjectParameter("iUserId", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetModulesByUserId", iUserIdParameter); } public virtual ObjectResult GetModuleStatusByLicenseId(Nullable iLicenseId) { var iLicenseIdParameter = iLicenseId.HasValue ? new ObjectParameter("iLicenseId", iLicenseId) : new ObjectParameter("iLicenseId", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetModuleStatusByLicenseId", iLicenseIdParameter); } public virtual ObjectResult GetNetAdDetailReport(string sFromDate, string sToDate, string sLicenseType, string sAccountType, Nullable iStartPrice, Nullable iEndPrice) { 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 sLicenseTypeParameter = sLicenseType != null ? new ObjectParameter("sLicenseType", sLicenseType) : new ObjectParameter("sLicenseType", typeof(string)); var sAccountTypeParameter = sAccountType != null ? new ObjectParameter("sAccountType", sAccountType) : new ObjectParameter("sAccountType", 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)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetNetAdDetailReport", sFromDateParameter, sToDateParameter, sLicenseTypeParameter, sAccountTypeParameter, iStartPriceParameter, iEndPriceParameter); } public virtual ObjectResult GetNetAdSummaryReport(string sFromDate, string sToDate, Nullable iStartPrice, Nullable iEndPrice, Nullable iLicenseTypeId) { 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)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetNetAdSummaryReport", sFromDateParameter, sToDateParameter, iStartPriceParameter, iEndPriceParameter, iLicenseTypeIdParameter); } public virtual ObjectResult GetProductFeatures(Nullable editionId) { var editionIdParameter = editionId.HasValue ? new ObjectParameter("EditionId", editionId) : new ObjectParameter("EditionId", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetProductFeatures", editionIdParameter); } public virtual int GetSchedulerAlertEmail(ObjectParameter sSchedulerEmail, ObjectParameter sDeploymentEnvironment) { return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetSchedulerAlertEmail", sSchedulerEmail, sDeploymentEnvironment); } public virtual ObjectResult GetSearchDetails() { return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetSearchDetails"); } public virtual ObjectResult GetSearchTerms() { return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetSearchTerms"); } public virtual ObjectResult GetSearchUserList(string sFirstName, string sLastName, string sEmailId, string sAccoutNumber, Nullable iUserTypeId, Nullable iAccountTypeId, Nullable iLoginUserType) { 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 sEmailIdParameter = sEmailId != null ? new ObjectParameter("sEmailId", sEmailId) : new ObjectParameter("sEmailId", typeof(string)); var sAccoutNumberParameter = sAccoutNumber != null ? new ObjectParameter("sAccoutNumber", sAccoutNumber) : new ObjectParameter("sAccoutNumber", typeof(string)); var iUserTypeIdParameter = iUserTypeId.HasValue ? new ObjectParameter("iUserTypeId", iUserTypeId) : new ObjectParameter("iUserTypeId", typeof(int)); var iAccountTypeIdParameter = iAccountTypeId.HasValue ? new ObjectParameter("iAccountTypeId", iAccountTypeId) : new ObjectParameter("iAccountTypeId", typeof(int)); var iLoginUserTypeParameter = iLoginUserType.HasValue ? new ObjectParameter("iLoginUserType", iLoginUserType) : new ObjectParameter("iLoginUserType", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetSearchUserList", sFirstNameParameter, sLastNameParameter, sEmailIdParameter, sAccoutNumberParameter, iUserTypeIdParameter, iAccountTypeIdParameter, iLoginUserTypeParameter); } public virtual ObjectResult GetSiteAccoutDetail(string strAccountNumber) { var strAccountNumberParameter = strAccountNumber != null ? new ObjectParameter("strAccountNumber", strAccountNumber) : new ObjectParameter("strAccountNumber", typeof(string)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetSiteAccoutDetail", strAccountNumberParameter); } public virtual ObjectResult GetSiteIpByAccountNumber(string accountNumner) { var accountNumnerParameter = accountNumner != null ? new ObjectParameter("AccountNumner", accountNumner) : new ObjectParameter("AccountNumner", typeof(string)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetSiteIpByAccountNumber", accountNumnerParameter); } public virtual ObjectResult GetSiteLicenseUsageReport(string sFromDate, string sToDate, string sAccoutNumber, Nullable iEditionId) { 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 sAccoutNumberParameter = sAccoutNumber != null ? new ObjectParameter("sAccoutNumber", sAccoutNumber) : new ObjectParameter("sAccoutNumber", typeof(string)); var iEditionIdParameter = iEditionId.HasValue ? new ObjectParameter("iEditionId", iEditionId) : new ObjectParameter("iEditionId", typeof(byte)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetSiteLicenseUsageReport", sFromDateParameter, sToDateParameter, sAccoutNumberParameter, iEditionIdParameter); } public virtual ObjectResult GetSubscribedLicenses(string sFromDate, string sToDate, Nullable iStartPrice, Nullable iEndPrice, Nullable iLicenseTypeId, Nullable iAccountTypeId, string sZip, Nullable iStateId, Nullable iCountryId) { 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)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetSubscribedLicenses", sFromDateParameter, sToDateParameter, iStartPriceParameter, iEndPriceParameter, iLicenseTypeIdParameter, iAccountTypeIdParameter, sZipParameter, iStateIdParameter, iCountryIdParameter); } public virtual ObjectResult GetSubscriptionDetailsByLicenseId(Nullable iLicenseId) { var iLicenseIdParameter = iLicenseId.HasValue ? new ObjectParameter("iLicenseId", iLicenseId) : new ObjectParameter("iLicenseId", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetSubscriptionDetailsByLicenseId", iLicenseIdParameter); } public virtual int GetTermNumberData() { return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetTermNumberData"); } public virtual ObjectResult GetTermsAndConditions() { return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetTermsAndConditions"); } public virtual ObjectResult GetTermsOfServiceText() { return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetTermsOfServiceText"); } public virtual int GetThreeDHighLightData() { return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetThreeDHighLightData"); } public virtual ObjectResult GetTotalLoggedInUsersByLicenseIdAndEditionId(Nullable iLicenseId, Nullable iEditionId) { var iLicenseIdParameter = iLicenseId.HasValue ? new ObjectParameter("iLicenseId", iLicenseId) : new ObjectParameter("iLicenseId", typeof(int)); var iEditionIdParameter = iEditionId.HasValue ? new ObjectParameter("iEditionId", iEditionId) : new ObjectParameter("iEditionId", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetTotalLoggedInUsersByLicenseIdAndEditionId", iLicenseIdParameter, iEditionIdParameter); } public virtual ObjectResult> GetTotalLoginsByLicenseEditionId(Nullable licenseEditionId) { var licenseEditionIdParameter = licenseEditionId.HasValue ? new ObjectParameter("LicenseEditionId", licenseEditionId) : new ObjectParameter("LicenseEditionId", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction>("GetTotalLoginsByLicenseEditionId", licenseEditionIdParameter); } public virtual ObjectResult GetUsageReport(string sFromDate, string sToDate, string sAccoutNumber, string sZip, Nullable iState, Nullable iCountry) { 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 sAccoutNumberParameter = sAccoutNumber != null ? new ObjectParameter("sAccoutNumber", sAccoutNumber) : new ObjectParameter("sAccoutNumber", typeof(string)); 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)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetUsageReport", sFromDateParameter, sToDateParameter, sAccoutNumberParameter, sZipParameter, iStateParameter, iCountryParameter); } public virtual ObjectResult GetUsageReport_OLD_PROC(string sFromDate, string sToDate, string sAccoutNumber, string sZip, Nullable iState, Nullable iCountry) { 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 sAccoutNumberParameter = sAccoutNumber != null ? new ObjectParameter("sAccoutNumber", sAccoutNumber) : new ObjectParameter("sAccoutNumber", typeof(string)); 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)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetUsageReport_OLD_PROC", sFromDateParameter, sToDateParameter, sAccoutNumberParameter, sZipParameter, iStateParameter, iCountryParameter); } public virtual ObjectResult GetUserByUserId(Nullable id) { var idParameter = id.HasValue ? new ObjectParameter("Id", id) : new ObjectParameter("Id", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetUserByUserId", idParameter); } public virtual ObjectResult GetUserDetailsByLoginId(string sLoginId) { var sLoginIdParameter = sLoginId != null ? new ObjectParameter("sLoginId", sLoginId) : new ObjectParameter("sLoginId", typeof(string)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetUserDetailsByLoginId", sLoginIdParameter); } public virtual ObjectResult GetUserDetailsByLoginIdAndPassword(string sLoginId, string sPassword) { 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)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetUserDetailsByLoginIdAndPassword", sLoginIdParameter, sPasswordParameter); } public virtual ObjectResult GetUserInfoByEmailId(string sEmailId) { var sEmailIdParameter = sEmailId != null ? new ObjectParameter("sEmailId", sEmailId) : new ObjectParameter("sEmailId", typeof(string)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetUserInfoByEmailId", sEmailIdParameter); } public virtual ObjectResult GetUserInGroup(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("GetUserInGroup", iLicenseIdParameter, iGroupIdParameter); } public virtual ObjectResult GetUserlActivities(Nullable iUserId) { var iUserIdParameter = iUserId.HasValue ? new ObjectParameter("iUserId", iUserId) : new ObjectParameter("iUserId", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetUserlActivities", iUserIdParameter); } public virtual ObjectResult GetUserModulesByLicenseId(Nullable iLicenseId) { var iLicenseIdParameter = iLicenseId.HasValue ? new ObjectParameter("iLicenseId", iLicenseId) : new ObjectParameter("iLicenseId", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetUserModulesByLicenseId", iLicenseIdParameter); } public virtual ObjectResult GetUserSessionDetails(Nullable iLicenseId, Nullable iEditionId) { var iLicenseIdParameter = iLicenseId.HasValue ? new ObjectParameter("iLicenseId", iLicenseId) : new ObjectParameter("iLicenseId", typeof(int)); var iEditionIdParameter = iEditionId.HasValue ? new ObjectParameter("iEditionId", iEditionId) : new ObjectParameter("iEditionId", typeof(byte)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetUserSessionDetails", iLicenseIdParameter, iEditionIdParameter); } public virtual ObjectResult GetUserTyeByAccountNumber(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("GetUserTyeByAccountNumber", iUserTypeIdParameter, iLicenseIdParameter); } public virtual ObjectResult> IncorrectLoginAttempt(Nullable iUserId) { var iUserIdParameter = iUserId.HasValue ? new ObjectParameter("iUserId", iUserId) : new ObjectParameter("iUserId", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction>("IncorrectLoginAttempt", iUserIdParameter); } public virtual ObjectResult InsertAIAUser(string sLoginId, string sPassword, string sFirstname, string sLastname, Nullable iUserTypeId, string sEmailId, Nullable iSecurityQuesId, string sSecurityAnswer, Nullable iCreatorId, Nullable iLicenseId, Nullable iEditionId, ObjectParameter status) { 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 iUserTypeIdParameter = iUserTypeId.HasValue ? new ObjectParameter("iUserTypeId", iUserTypeId) : new ObjectParameter("iUserTypeId", typeof(byte)); var sEmailIdParameter = sEmailId != null ? new ObjectParameter("sEmailId", sEmailId) : new ObjectParameter("sEmailId", typeof(string)); var iSecurityQuesIdParameter = iSecurityQuesId.HasValue ? new ObjectParameter("iSecurityQuesId", iSecurityQuesId) : new ObjectParameter("iSecurityQuesId", typeof(byte)); var sSecurityAnswerParameter = sSecurityAnswer != null ? new ObjectParameter("sSecurityAnswer", sSecurityAnswer) : new ObjectParameter("sSecurityAnswer", typeof(string)); var iCreatorIdParameter = iCreatorId.HasValue ? new ObjectParameter("iCreatorId", iCreatorId) : new ObjectParameter("iCreatorId", typeof(int)); var iLicenseIdParameter = iLicenseId.HasValue ? new ObjectParameter("iLicenseId", iLicenseId) : new ObjectParameter("iLicenseId", typeof(int)); var iEditionIdParameter = iEditionId.HasValue ? new ObjectParameter("iEditionId", iEditionId) : new ObjectParameter("iEditionId", typeof(byte)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("InsertAIAUser", sLoginIdParameter, sPasswordParameter, sFirstnameParameter, sLastnameParameter, iUserTypeIdParameter, sEmailIdParameter, iSecurityQuesIdParameter, sSecurityAnswerParameter, iCreatorIdParameter, iLicenseIdParameter, iEditionIdParameter, status); } public virtual int InsertDemoLicenseAccount() { return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("InsertDemoLicenseAccount"); } public virtual int InsertIncorrectLoginAttempt(Nullable iUserId) { var iUserIdParameter = iUserId.HasValue ? new ObjectParameter("iUserId", iUserId) : new ObjectParameter("iUserId", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("InsertIncorrectLoginAttempt", iUserIdParameter); } public virtual int InsertLoginDetail(Nullable iUserId) { var iUserIdParameter = iUserId.HasValue ? new ObjectParameter("iUserId", iUserId) : new ObjectParameter("iUserId", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("InsertLoginDetail", iUserIdParameter); } public virtual int InsertLoginDetail_1(Nullable iUserId, string callFromURL) { var iUserIdParameter = iUserId.HasValue ? new ObjectParameter("iUserId", iUserId) : new ObjectParameter("iUserId", typeof(int)); var callFromURLParameter = callFromURL != null ? new ObjectParameter("CallFromURL", callFromURL) : new ObjectParameter("CallFromURL", typeof(string)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("InsertLoginDetail_1", iUserIdParameter, callFromURLParameter); } public virtual int InsertLoginDetailsInSessionManager(string sSessionId, Nullable iUserId, Nullable iLicenseId, Nullable iEditionId) { var sSessionIdParameter = sSessionId != null ? new ObjectParameter("sSessionId", sSessionId) : new ObjectParameter("sSessionId", typeof(string)); var iUserIdParameter = iUserId.HasValue ? new ObjectParameter("iUserId", iUserId) : new ObjectParameter("iUserId", typeof(int)); var iLicenseIdParameter = iLicenseId.HasValue ? new ObjectParameter("iLicenseId", iLicenseId) : new ObjectParameter("iLicenseId", typeof(int)); var iEditionIdParameter = iEditionId.HasValue ? new ObjectParameter("iEditionId", iEditionId) : new ObjectParameter("iEditionId", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("InsertLoginDetailsInSessionManager", sSessionIdParameter, iUserIdParameter, iLicenseIdParameter, iEditionIdParameter); } public virtual int InsertLoginErrorLog(string nvAccountNumber, Nullable dtLogDate, Nullable tiFailureId, string nvReferalUrl, string nvEdition, string nvHttpReferer) { var nvAccountNumberParameter = nvAccountNumber != null ? new ObjectParameter("nvAccountNumber", nvAccountNumber) : new ObjectParameter("nvAccountNumber", typeof(string)); var dtLogDateParameter = dtLogDate.HasValue ? new ObjectParameter("dtLogDate", dtLogDate) : new ObjectParameter("dtLogDate", typeof(System.DateTime)); var tiFailureIdParameter = tiFailureId.HasValue ? new ObjectParameter("tiFailureId", tiFailureId) : new ObjectParameter("tiFailureId", typeof(byte)); var nvReferalUrlParameter = nvReferalUrl != null ? new ObjectParameter("nvReferalUrl", nvReferalUrl) : new ObjectParameter("nvReferalUrl", typeof(string)); var nvEditionParameter = nvEdition != null ? new ObjectParameter("nvEdition", nvEdition) : new ObjectParameter("nvEdition", typeof(string)); var nvHttpRefererParameter = nvHttpReferer != null ? new ObjectParameter("nvHttpReferer", nvHttpReferer) : new ObjectParameter("nvHttpReferer", typeof(string)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("InsertLoginErrorLog", nvAccountNumberParameter, dtLogDateParameter, tiFailureIdParameter, nvReferalUrlParameter, nvEditionParameter, nvHttpRefererParameter); } public virtual ObjectResult InsertNewDiscount(Nullable dPercentage, string sStartDate, string sEndDate, string sDiscountCode) { var dPercentageParameter = dPercentage.HasValue ? new ObjectParameter("dPercentage", dPercentage) : new ObjectParameter("dPercentage", typeof(decimal)); 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 sDiscountCodeParameter = sDiscountCode != null ? new ObjectParameter("sDiscountCode", sDiscountCode) : new ObjectParameter("sDiscountCode", typeof(string)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("InsertNewDiscount", dPercentageParameter, sStartDateParameter, sEndDateParameter, sDiscountCodeParameter); } public virtual ObjectResult InsertNewLicenseAccount(string sAccountNumber, string sLicenseeFname, string sLicenseeLname, Nullable iLicenseTypeId, Nullable iAccountTypeId, string sInstitutionName, string sAddress1, string sAddress2, string sCity, string sZip, Nullable iStateId, Nullable iCountryId, string sPhone, string sEmailId, Nullable iTotalLogins, string sStartDate, string sEndDate, string sMasterIP, string sEditionList, Nullable iPrice, string sProductKey, string sSiteIPTo, string sSiteMasterIPTo, Nullable iNoofImages) { var sAccountNumberParameter = sAccountNumber != null ? new ObjectParameter("sAccountNumber", sAccountNumber) : new ObjectParameter("sAccountNumber", typeof(string)); var sLicenseeFnameParameter = sLicenseeFname != null ? new ObjectParameter("sLicenseeFname", sLicenseeFname) : new ObjectParameter("sLicenseeFname", typeof(string)); var sLicenseeLnameParameter = sLicenseeLname != null ? new ObjectParameter("sLicenseeLname", sLicenseeLname) : new ObjectParameter("sLicenseeLname", typeof(string)); 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 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 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 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 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 iTotalLoginsParameter = iTotalLogins.HasValue ? new ObjectParameter("iTotalLogins", iTotalLogins) : new ObjectParameter("iTotalLogins", typeof(int)); 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 sMasterIPParameter = sMasterIP != null ? new ObjectParameter("sMasterIP", sMasterIP) : new ObjectParameter("sMasterIP", typeof(string)); var sEditionListParameter = sEditionList != null ? new ObjectParameter("sEditionList", sEditionList) : new ObjectParameter("sEditionList", typeof(string)); var iPriceParameter = iPrice.HasValue ? new ObjectParameter("iPrice", iPrice) : new ObjectParameter("iPrice", typeof(decimal)); var sProductKeyParameter = sProductKey != null ? new ObjectParameter("sProductKey", sProductKey) : new ObjectParameter("sProductKey", typeof(string)); var sSiteIPToParameter = sSiteIPTo != null ? new ObjectParameter("sSiteIPTo", sSiteIPTo) : new ObjectParameter("sSiteIPTo", typeof(string)); var sSiteMasterIPToParameter = sSiteMasterIPTo != null ? new ObjectParameter("sSiteMasterIPTo", sSiteMasterIPTo) : new ObjectParameter("sSiteMasterIPTo", typeof(string)); var iNoofImagesParameter = iNoofImages.HasValue ? new ObjectParameter("iNoofImages", iNoofImages) : new ObjectParameter("iNoofImages", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("InsertNewLicenseAccount", sAccountNumberParameter, sLicenseeFnameParameter, sLicenseeLnameParameter, iLicenseTypeIdParameter, iAccountTypeIdParameter, sInstitutionNameParameter, sAddress1Parameter, sAddress2Parameter, sCityParameter, sZipParameter, iStateIdParameter, iCountryIdParameter, sPhoneParameter, sEmailIdParameter, iTotalLoginsParameter, sStartDateParameter, sEndDateParameter, sMasterIPParameter, sEditionListParameter, iPriceParameter, sProductKeyParameter, sSiteIPToParameter, sSiteMasterIPToParameter, iNoofImagesParameter); } public virtual ObjectResult InsertResellerLicenseAccount(string sLicenseeFname, string sLicenseeLname, Nullable iLicenseTypeId, Nullable iAccountTypeId, string sInstitutionName, string sAddress1, string sAddress2, string sCity, string sZip, Nullable iStateId, Nullable iCountryId, string sPhone, string sEmailId, Nullable iTotalLogins, string sStartDate, string sEndDate, string sEditionList, Nullable iTotalPrice, Nullable iCreatorId, string sProductKey, Nullable iNoofImages) { var sLicenseeFnameParameter = sLicenseeFname != null ? new ObjectParameter("sLicenseeFname", sLicenseeFname) : new ObjectParameter("sLicenseeFname", typeof(string)); var sLicenseeLnameParameter = sLicenseeLname != null ? new ObjectParameter("sLicenseeLname", sLicenseeLname) : new ObjectParameter("sLicenseeLname", typeof(string)); 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 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 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 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 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 iTotalLoginsParameter = iTotalLogins.HasValue ? new ObjectParameter("iTotalLogins", iTotalLogins) : new ObjectParameter("iTotalLogins", typeof(int)); 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 sEditionListParameter = sEditionList != null ? new ObjectParameter("sEditionList", sEditionList) : new ObjectParameter("sEditionList", typeof(string)); var iTotalPriceParameter = iTotalPrice.HasValue ? new ObjectParameter("iTotalPrice", iTotalPrice) : new ObjectParameter("iTotalPrice", typeof(decimal)); var iCreatorIdParameter = iCreatorId.HasValue ? new ObjectParameter("iCreatorId", iCreatorId) : new ObjectParameter("iCreatorId", typeof(int)); var sProductKeyParameter = sProductKey != null ? new ObjectParameter("sProductKey", sProductKey) : new ObjectParameter("sProductKey", typeof(string)); var iNoofImagesParameter = iNoofImages.HasValue ? new ObjectParameter("iNoofImages", iNoofImages) : new ObjectParameter("iNoofImages", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("InsertResellerLicenseAccount", sLicenseeFnameParameter, sLicenseeLnameParameter, iLicenseTypeIdParameter, iAccountTypeIdParameter, sInstitutionNameParameter, sAddress1Parameter, sAddress2Parameter, sCityParameter, sZipParameter, iStateIdParameter, iCountryIdParameter, sPhoneParameter, sEmailIdParameter, iTotalLoginsParameter, sStartDateParameter, sEndDateParameter, sEditionListParameter, iTotalPriceParameter, iCreatorIdParameter, sProductKeyParameter, iNoofImagesParameter); } public virtual ObjectResult InsertSingleLicenseAccount(string sAccountNumber, string sLicenseeFname, string sLicenseeLname, Nullable iAccountTypeId, string sInstitutionName, string sAddress1, string sAddress2, string sCity, string sZip, Nullable iStateId, Nullable iCountryId, string sPhone, string sEmailId, Nullable iTotalLogins, string sStartDate, string sEndDate, string sEditionList, Nullable iPrice, string sProductKey, string sLoginId, string sPassword, Nullable iSecurityQuesId, string sSecurityAnswer, Nullable iCreatorId, Nullable iNoofImages) { var sAccountNumberParameter = sAccountNumber != null ? new ObjectParameter("sAccountNumber", sAccountNumber) : new ObjectParameter("sAccountNumber", typeof(string)); var sLicenseeFnameParameter = sLicenseeFname != null ? new ObjectParameter("sLicenseeFname", sLicenseeFname) : new ObjectParameter("sLicenseeFname", typeof(string)); var sLicenseeLnameParameter = sLicenseeLname != null ? new ObjectParameter("sLicenseeLname", sLicenseeLname) : new ObjectParameter("sLicenseeLname", typeof(string)); var iAccountTypeIdParameter = iAccountTypeId.HasValue ? new ObjectParameter("iAccountTypeId", iAccountTypeId) : new ObjectParameter("iAccountTypeId", typeof(byte)); 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 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 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 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 iTotalLoginsParameter = iTotalLogins.HasValue ? new ObjectParameter("iTotalLogins", iTotalLogins) : new ObjectParameter("iTotalLogins", typeof(int)); 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 sEditionListParameter = sEditionList != null ? new ObjectParameter("sEditionList", sEditionList) : new ObjectParameter("sEditionList", typeof(string)); var iPriceParameter = iPrice.HasValue ? new ObjectParameter("iPrice", iPrice) : new ObjectParameter("iPrice", typeof(decimal)); var sProductKeyParameter = sProductKey != null ? new ObjectParameter("sProductKey", sProductKey) : new ObjectParameter("sProductKey", typeof(string)); 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 iSecurityQuesIdParameter = iSecurityQuesId.HasValue ? new ObjectParameter("iSecurityQuesId", iSecurityQuesId) : new ObjectParameter("iSecurityQuesId", typeof(byte)); var sSecurityAnswerParameter = sSecurityAnswer != null ? new ObjectParameter("sSecurityAnswer", sSecurityAnswer) : new ObjectParameter("sSecurityAnswer", typeof(string)); var iCreatorIdParameter = iCreatorId.HasValue ? new ObjectParameter("iCreatorId", iCreatorId) : new ObjectParameter("iCreatorId", typeof(int)); var iNoofImagesParameter = iNoofImages.HasValue ? new ObjectParameter("iNoofImages", iNoofImages) : new ObjectParameter("iNoofImages", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("InsertSingleLicenseAccount", sAccountNumberParameter, sLicenseeFnameParameter, sLicenseeLnameParameter, iAccountTypeIdParameter, sInstitutionNameParameter, sAddress1Parameter, sAddress2Parameter, sCityParameter, sZipParameter, iStateIdParameter, iCountryIdParameter, sPhoneParameter, sEmailIdParameter, iTotalLoginsParameter, sStartDateParameter, sEndDateParameter, sEditionListParameter, iPriceParameter, sProductKeyParameter, sLoginIdParameter, sPasswordParameter, iSecurityQuesIdParameter, sSecurityAnswerParameter, iCreatorIdParameter, iNoofImagesParameter); } public virtual ObjectResult InsertTestLicenseAccount(string sAccountNumber, string sLicenseeFname, string sLicenseeLname, string sLoginId, string sPassword, string sEmailId, Nullable iAccountTypeId, Nullable iEditionId, string sAddress, string sCity, string sZip, Nullable iStateId, Nullable iCountryId, string sPhone, string sStartDate, string sEndDate, Nullable iCreatorId, Nullable iNoofImages) { var sAccountNumberParameter = sAccountNumber != null ? new ObjectParameter("sAccountNumber", sAccountNumber) : new ObjectParameter("sAccountNumber", typeof(string)); var sLicenseeFnameParameter = sLicenseeFname != null ? new ObjectParameter("sLicenseeFname", sLicenseeFname) : new ObjectParameter("sLicenseeFname", typeof(string)); var sLicenseeLnameParameter = sLicenseeLname != null ? new ObjectParameter("sLicenseeLname", sLicenseeLname) : new ObjectParameter("sLicenseeLname", typeof(string)); 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 sEmailIdParameter = sEmailId != null ? new ObjectParameter("sEmailId", sEmailId) : new ObjectParameter("sEmailId", typeof(string)); var iAccountTypeIdParameter = iAccountTypeId.HasValue ? new ObjectParameter("iAccountTypeId", iAccountTypeId) : new ObjectParameter("iAccountTypeId", typeof(byte)); var iEditionIdParameter = iEditionId.HasValue ? new ObjectParameter("iEditionId", iEditionId) : new ObjectParameter("iEditionId", typeof(byte)); var sAddressParameter = sAddress != null ? new ObjectParameter("sAddress", sAddress) : new ObjectParameter("sAddress", typeof(string)); 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 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 sPhoneParameter = sPhone != null ? new ObjectParameter("sPhone", sPhone) : new ObjectParameter("sPhone", 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 iCreatorIdParameter = iCreatorId.HasValue ? new ObjectParameter("iCreatorId", iCreatorId) : new ObjectParameter("iCreatorId", typeof(int)); var iNoofImagesParameter = iNoofImages.HasValue ? new ObjectParameter("iNoofImages", iNoofImages) : new ObjectParameter("iNoofImages", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("InsertTestLicenseAccount", sAccountNumberParameter, sLicenseeFnameParameter, sLicenseeLnameParameter, sLoginIdParameter, sPasswordParameter, sEmailIdParameter, iAccountTypeIdParameter, iEditionIdParameter, sAddressParameter, sCityParameter, sZipParameter, iStateIdParameter, iCountryIdParameter, sPhoneParameter, sStartDateParameter, sEndDateParameter, iCreatorIdParameter, iNoofImagesParameter); } public virtual ObjectResult InsertUpdateSiteAccount(Nullable iSiteId, string sSiteIP, string sTitle, string sInstituteName, string sDepartment, string sAddress1, string sAddress2, string sCity, string zip, string phone, Nullable stateId, Nullable countryId, Nullable isMaster, Nullable creationDate, Nullable modifiedDate, Nullable isActive, Nullable isModesty, Nullable userId, string sSiteIPTo) { var iSiteIdParameter = iSiteId.HasValue ? new ObjectParameter("iSiteId", iSiteId) : new ObjectParameter("iSiteId", typeof(int)); var sSiteIPParameter = sSiteIP != null ? new ObjectParameter("sSiteIP", sSiteIP) : new ObjectParameter("sSiteIP", typeof(string)); var sTitleParameter = sTitle != null ? new ObjectParameter("sTitle", sTitle) : new ObjectParameter("sTitle", typeof(string)); var sInstituteNameParameter = sInstituteName != null ? new ObjectParameter("sInstituteName", sInstituteName) : new ObjectParameter("sInstituteName", typeof(string)); var sDepartmentParameter = sDepartment != null ? new ObjectParameter("sDepartment", sDepartment) : new ObjectParameter("sDepartment", 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 sCityParameter = sCity != null ? new ObjectParameter("sCity", sCity) : new ObjectParameter("sCity", typeof(string)); var zipParameter = zip != null ? new ObjectParameter("Zip", zip) : new ObjectParameter("Zip", typeof(string)); var phoneParameter = phone != null ? new ObjectParameter("Phone", phone) : new ObjectParameter("Phone", typeof(string)); var stateIdParameter = stateId.HasValue ? new ObjectParameter("StateId", stateId) : new ObjectParameter("StateId", typeof(int)); var countryIdParameter = countryId.HasValue ? new ObjectParameter("CountryId", countryId) : new ObjectParameter("CountryId", typeof(int)); var isMasterParameter = isMaster.HasValue ? new ObjectParameter("IsMaster", isMaster) : new ObjectParameter("IsMaster", typeof(bool)); var creationDateParameter = creationDate.HasValue ? new ObjectParameter("CreationDate", creationDate) : new ObjectParameter("CreationDate", typeof(System.DateTime)); var modifiedDateParameter = modifiedDate.HasValue ? new ObjectParameter("ModifiedDate", modifiedDate) : new ObjectParameter("ModifiedDate", typeof(System.DateTime)); var isActiveParameter = isActive.HasValue ? new ObjectParameter("IsActive", isActive) : new ObjectParameter("IsActive", typeof(bool)); var isModestyParameter = isModesty.HasValue ? new ObjectParameter("IsModesty", isModesty) : new ObjectParameter("IsModesty", typeof(bool)); var userIdParameter = userId.HasValue ? new ObjectParameter("UserId", userId) : new ObjectParameter("UserId", typeof(int)); var sSiteIPToParameter = sSiteIPTo != null ? new ObjectParameter("sSiteIPTo", sSiteIPTo) : new ObjectParameter("sSiteIPTo", typeof(string)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("InsertUpdateSiteAccount", iSiteIdParameter, sSiteIPParameter, sTitleParameter, sInstituteNameParameter, sDepartmentParameter, sAddress1Parameter, sAddress2Parameter, sCityParameter, zipParameter, phoneParameter, stateIdParameter, countryIdParameter, isMasterParameter, creationDateParameter, modifiedDateParameter, isActiveParameter, isModestyParameter, userIdParameter, sSiteIPToParameter); } public virtual int InsertUserSessionDetails(string sSessionId, Nullable iUserId, Nullable iLicenseId, Nullable iEditionId) { var sSessionIdParameter = sSessionId != null ? new ObjectParameter("sSessionId", sSessionId) : new ObjectParameter("sSessionId", typeof(string)); var iUserIdParameter = iUserId.HasValue ? new ObjectParameter("iUserId", iUserId) : new ObjectParameter("iUserId", typeof(int)); var iLicenseIdParameter = iLicenseId.HasValue ? new ObjectParameter("iLicenseId", iLicenseId) : new ObjectParameter("iLicenseId", typeof(int)); var iEditionIdParameter = iEditionId.HasValue ? new ObjectParameter("iEditionId", iEditionId) : new ObjectParameter("iEditionId", typeof(byte)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("InsertUserSessionDetails", sSessionIdParameter, iUserIdParameter, iLicenseIdParameter, iEditionIdParameter); } public virtual int NewDeleteCommand(Nullable original_Id, string original_Title, Nullable original_Priority, Nullable original_IsActive) { var original_IdParameter = original_Id.HasValue ? new ObjectParameter("Original_Id", original_Id) : new ObjectParameter("Original_Id", typeof(byte)); var original_TitleParameter = original_Title != null ? new ObjectParameter("Original_Title", original_Title) : new ObjectParameter("Original_Title", typeof(string)); var original_PriorityParameter = original_Priority.HasValue ? new ObjectParameter("Original_Priority", original_Priority) : new ObjectParameter("Original_Priority", typeof(byte)); var original_IsActiveParameter = original_IsActive.HasValue ? new ObjectParameter("Original_IsActive", original_IsActive) : new ObjectParameter("Original_IsActive", typeof(bool)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("NewDeleteCommand", original_IdParameter, original_TitleParameter, original_PriorityParameter, original_IsActiveParameter); } public virtual ObjectResult NewInsertCommand(string title, Nullable priority, Nullable isActive) { var titleParameter = title != null ? new ObjectParameter("Title", title) : new ObjectParameter("Title", typeof(string)); var priorityParameter = priority.HasValue ? new ObjectParameter("Priority", priority) : new ObjectParameter("Priority", typeof(byte)); var isActiveParameter = isActive.HasValue ? new ObjectParameter("IsActive", isActive) : new ObjectParameter("IsActive", typeof(bool)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("NewInsertCommand", titleParameter, priorityParameter, isActiveParameter); } public virtual ObjectResult NewUpdateCommand(string title, Nullable priority, Nullable isActive, Nullable original_Id, string original_Title, Nullable original_Priority, Nullable original_IsActive, Nullable id) { var titleParameter = title != null ? new ObjectParameter("Title", title) : new ObjectParameter("Title", typeof(string)); var priorityParameter = priority.HasValue ? new ObjectParameter("Priority", priority) : new ObjectParameter("Priority", typeof(byte)); var isActiveParameter = isActive.HasValue ? new ObjectParameter("IsActive", isActive) : new ObjectParameter("IsActive", typeof(bool)); var original_IdParameter = original_Id.HasValue ? new ObjectParameter("Original_Id", original_Id) : new ObjectParameter("Original_Id", typeof(byte)); var original_TitleParameter = original_Title != null ? new ObjectParameter("Original_Title", original_Title) : new ObjectParameter("Original_Title", typeof(string)); var original_PriorityParameter = original_Priority.HasValue ? new ObjectParameter("Original_Priority", original_Priority) : new ObjectParameter("Original_Priority", typeof(byte)); var original_IsActiveParameter = original_IsActive.HasValue ? new ObjectParameter("Original_IsActive", original_IsActive) : new ObjectParameter("Original_IsActive", typeof(bool)); var idParameter = id.HasValue ? new ObjectParameter("Id", id) : new ObjectParameter("Id", typeof(byte)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("NewUpdateCommand", titleParameter, priorityParameter, isActiveParameter, original_IdParameter, original_TitleParameter, original_PriorityParameter, original_IsActiveParameter, idParameter); } public virtual int sp_alterdiagram(string diagramname, Nullable owner_id, Nullable version, byte[] definition) { var diagramnameParameter = diagramname != null ? new ObjectParameter("diagramname", diagramname) : new ObjectParameter("diagramname", typeof(string)); var owner_idParameter = owner_id.HasValue ? new ObjectParameter("owner_id", owner_id) : new ObjectParameter("owner_id", typeof(int)); var versionParameter = version.HasValue ? new ObjectParameter("version", version) : new ObjectParameter("version", typeof(int)); var definitionParameter = definition != null ? new ObjectParameter("definition", definition) : new ObjectParameter("definition", typeof(byte[])); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_alterdiagram", diagramnameParameter, owner_idParameter, versionParameter, definitionParameter); } public virtual int sp_creatediagram(string diagramname, Nullable owner_id, Nullable version, byte[] definition) { var diagramnameParameter = diagramname != null ? new ObjectParameter("diagramname", diagramname) : new ObjectParameter("diagramname", typeof(string)); var owner_idParameter = owner_id.HasValue ? new ObjectParameter("owner_id", owner_id) : new ObjectParameter("owner_id", typeof(int)); var versionParameter = version.HasValue ? new ObjectParameter("version", version) : new ObjectParameter("version", typeof(int)); var definitionParameter = definition != null ? new ObjectParameter("definition", definition) : new ObjectParameter("definition", typeof(byte[])); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_creatediagram", diagramnameParameter, owner_idParameter, versionParameter, definitionParameter); } public virtual int sp_dropdiagram(string diagramname, Nullable owner_id) { var diagramnameParameter = diagramname != null ? new ObjectParameter("diagramname", diagramname) : new ObjectParameter("diagramname", typeof(string)); var owner_idParameter = owner_id.HasValue ? new ObjectParameter("owner_id", owner_id) : new ObjectParameter("owner_id", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_dropdiagram", diagramnameParameter, owner_idParameter); } public virtual ObjectResult sp_helpdiagramdefinition(string diagramname, Nullable owner_id) { var diagramnameParameter = diagramname != null ? new ObjectParameter("diagramname", diagramname) : new ObjectParameter("diagramname", typeof(string)); var owner_idParameter = owner_id.HasValue ? new ObjectParameter("owner_id", owner_id) : new ObjectParameter("owner_id", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_helpdiagramdefinition", diagramnameParameter, owner_idParameter); } public virtual ObjectResult sp_helpdiagrams(string diagramname, Nullable owner_id) { var diagramnameParameter = diagramname != null ? new ObjectParameter("diagramname", diagramname) : new ObjectParameter("diagramname", typeof(string)); var owner_idParameter = owner_id.HasValue ? new ObjectParameter("owner_id", owner_id) : new ObjectParameter("owner_id", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_helpdiagrams", diagramnameParameter, owner_idParameter); } public virtual int sp_renamediagram(string diagramname, Nullable owner_id, string new_diagramname) { var diagramnameParameter = diagramname != null ? new ObjectParameter("diagramname", diagramname) : new ObjectParameter("diagramname", typeof(string)); var owner_idParameter = owner_id.HasValue ? new ObjectParameter("owner_id", owner_id) : new ObjectParameter("owner_id", typeof(int)); var new_diagramnameParameter = new_diagramname != null ? new ObjectParameter("new_diagramname", new_diagramname) : new ObjectParameter("new_diagramname", typeof(string)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_renamediagram", diagramnameParameter, owner_idParameter, new_diagramnameParameter); } public virtual int sp_upgraddiagrams() { return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_upgraddiagrams"); } public virtual int StartResellerSubscription(Nullable iLicenseId) { var iLicenseIdParameter = iLicenseId.HasValue ? new ObjectParameter("iLicenseId", iLicenseId) : new ObjectParameter("iLicenseId", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("StartResellerSubscription", iLicenseIdParameter); } public virtual int UpdateAiaUserPassword(Nullable id, string newPassword, ObjectParameter status) { var idParameter = id.HasValue ? new ObjectParameter("Id", id) : new ObjectParameter("Id", typeof(int)); var newPasswordParameter = newPassword != null ? new ObjectParameter("NewPassword", newPassword) : new ObjectParameter("NewPassword", typeof(string)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("UpdateAiaUserPassword", idParameter, newPasswordParameter, status); } public virtual ObjectResult UpdateDiscount(Nullable iDiscountId, Nullable dPercentage, string sStartDate, string sEndDate, Nullable iActive, string sDiscountCode) { var iDiscountIdParameter = iDiscountId.HasValue ? new ObjectParameter("iDiscountId", iDiscountId) : new ObjectParameter("iDiscountId", typeof(int)); var dPercentageParameter = dPercentage.HasValue ? new ObjectParameter("dPercentage", dPercentage) : new ObjectParameter("dPercentage", typeof(decimal)); 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 iActiveParameter = iActive.HasValue ? new ObjectParameter("iActive", iActive) : new ObjectParameter("iActive", typeof(byte)); var sDiscountCodeParameter = sDiscountCode != null ? new ObjectParameter("sDiscountCode", sDiscountCode) : new ObjectParameter("sDiscountCode", typeof(string)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("UpdateDiscount", iDiscountIdParameter, dPercentageParameter, sStartDateParameter, sEndDateParameter, iActiveParameter, sDiscountCodeParameter); } public virtual int UpdateDiscountStatus() { return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("UpdateDiscountStatus"); } public virtual int UpdateIncorrectLoginAttempts(Nullable iUserId) { var iUserIdParameter = iUserId.HasValue ? new ObjectParameter("iUserId", iUserId) : new ObjectParameter("iUserId", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("UpdateIncorrectLoginAttempts", iUserIdParameter); } public virtual ObjectResult UpdateLicenseAccount(Nullable iLicenseId, string sLicenseeFname, string sLicenseeLname, Nullable iLicenseTypeId, Nullable iAccountTypeId, string sInstitutionName, string sAddress1, string sAddress2, string sCity, string sZip, Nullable iStateId, Nullable iCountryId, string sPhone, string sEmailId, Nullable iIsActive, Nullable iTotalLogins, Nullable iIsRennew, string sStartDate, string sEndDate, string sRenewDate, string sMasterIP, string sEditionList, Nullable iPrice, string sProductKey, string sSiteIPTo, string sSiteMasterIPTo, Nullable iNoofImages) { var iLicenseIdParameter = iLicenseId.HasValue ? new ObjectParameter("iLicenseId", iLicenseId) : new ObjectParameter("iLicenseId", typeof(int)); var sLicenseeFnameParameter = sLicenseeFname != null ? new ObjectParameter("sLicenseeFname", sLicenseeFname) : new ObjectParameter("sLicenseeFname", typeof(string)); var sLicenseeLnameParameter = sLicenseeLname != null ? new ObjectParameter("sLicenseeLname", sLicenseeLname) : new ObjectParameter("sLicenseeLname", typeof(string)); 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 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 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 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 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 iIsActiveParameter = iIsActive.HasValue ? new ObjectParameter("iIsActive", iIsActive) : new ObjectParameter("iIsActive", typeof(byte)); var iTotalLoginsParameter = iTotalLogins.HasValue ? new ObjectParameter("iTotalLogins", iTotalLogins) : new ObjectParameter("iTotalLogins", typeof(int)); var iIsRennewParameter = iIsRennew.HasValue ? new ObjectParameter("iIsRennew", iIsRennew) : new ObjectParameter("iIsRennew", typeof(byte)); 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 sRenewDateParameter = sRenewDate != null ? new ObjectParameter("sRenewDate", sRenewDate) : new ObjectParameter("sRenewDate", typeof(string)); var sMasterIPParameter = sMasterIP != null ? new ObjectParameter("sMasterIP", sMasterIP) : new ObjectParameter("sMasterIP", typeof(string)); var sEditionListParameter = sEditionList != null ? new ObjectParameter("sEditionList", sEditionList) : new ObjectParameter("sEditionList", typeof(string)); var iPriceParameter = iPrice.HasValue ? new ObjectParameter("iPrice", iPrice) : new ObjectParameter("iPrice", typeof(decimal)); var sProductKeyParameter = sProductKey != null ? new ObjectParameter("sProductKey", sProductKey) : new ObjectParameter("sProductKey", typeof(string)); var sSiteIPToParameter = sSiteIPTo != null ? new ObjectParameter("sSiteIPTo", sSiteIPTo) : new ObjectParameter("sSiteIPTo", typeof(string)); var sSiteMasterIPToParameter = sSiteMasterIPTo != null ? new ObjectParameter("sSiteMasterIPTo", sSiteMasterIPTo) : new ObjectParameter("sSiteMasterIPTo", typeof(string)); var iNoofImagesParameter = iNoofImages.HasValue ? new ObjectParameter("iNoofImages", iNoofImages) : new ObjectParameter("iNoofImages", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("UpdateLicenseAccount", iLicenseIdParameter, sLicenseeFnameParameter, sLicenseeLnameParameter, iLicenseTypeIdParameter, iAccountTypeIdParameter, sInstitutionNameParameter, sAddress1Parameter, sAddress2Parameter, sCityParameter, sZipParameter, iStateIdParameter, iCountryIdParameter, sPhoneParameter, sEmailIdParameter, iIsActiveParameter, iTotalLoginsParameter, iIsRennewParameter, sStartDateParameter, sEndDateParameter, sRenewDateParameter, sMasterIPParameter, sEditionListParameter, iPriceParameter, sProductKeyParameter, sSiteIPToParameter, sSiteMasterIPToParameter, iNoofImagesParameter); } public virtual ObjectResult UpdateLicenseModule(Nullable iLicenseId, string sModuleTitle, Nullable iStatus) { var iLicenseIdParameter = iLicenseId.HasValue ? new ObjectParameter("iLicenseId", iLicenseId) : new ObjectParameter("iLicenseId", typeof(int)); var sModuleTitleParameter = sModuleTitle != null ? new ObjectParameter("sModuleTitle", sModuleTitle) : new ObjectParameter("sModuleTitle", typeof(string)); var iStatusParameter = iStatus.HasValue ? new ObjectParameter("iStatus", iStatus) : new ObjectParameter("iStatus", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("UpdateLicenseModule", iLicenseIdParameter, sModuleTitleParameter, iStatusParameter); } public virtual int UpdateLicenseStatus() { return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("UpdateLicenseStatus"); } public virtual int UpdateLicenseTermAcceptedStatus(string sAccountNumber) { var sAccountNumberParameter = sAccountNumber != null ? new ObjectParameter("sAccountNumber", sAccountNumber) : new ObjectParameter("sAccountNumber", typeof(string)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("UpdateLicenseTermAcceptedStatus", sAccountNumberParameter); } public virtual int UpdateUserPassword(string sLoginId, string sEmailId, string sNewPassword) { var sLoginIdParameter = sLoginId != null ? new ObjectParameter("sLoginId", sLoginId) : new ObjectParameter("sLoginId", typeof(string)); var sEmailIdParameter = sEmailId != null ? new ObjectParameter("sEmailId", sEmailId) : new ObjectParameter("sEmailId", typeof(string)); var sNewPasswordParameter = sNewPassword != null ? new ObjectParameter("sNewPassword", sNewPassword) : new ObjectParameter("sNewPassword", typeof(string)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("UpdateUserPassword", sLoginIdParameter, sEmailIdParameter, sNewPasswordParameter); } public virtual int UpdateUserProfile(Nullable id, string firstName, string lastName, string emailId, ObjectParameter status) { var idParameter = id.HasValue ? new ObjectParameter("Id", id) : new ObjectParameter("Id", typeof(int)); var firstNameParameter = firstName != null ? new ObjectParameter("FirstName", firstName) : new ObjectParameter("FirstName", typeof(string)); var lastNameParameter = lastName != null ? new ObjectParameter("LastName", lastName) : new ObjectParameter("LastName", typeof(string)); var emailIdParameter = emailId != null ? new ObjectParameter("EmailId", emailId) : new ObjectParameter("EmailId", typeof(string)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("UpdateUserProfile", idParameter, firstNameParameter, lastNameParameter, emailIdParameter, status); } public virtual ObjectResult usp_DB_TblRowCOUNT() { return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_DB_TblRowCOUNT"); } public virtual ObjectResult GetDiscountCodeDetails(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("GetDiscountCodeDetails", sDiscountCodeParameter, sStartDateParameter, sEndDateParameter); } public virtual ObjectResult GetDiscountCodes(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("GetDiscountCodes", sDiscountCodeParameter, sStartDateParameter, sEndDateParameter); } public virtual ObjectResult usp_GetAccountTypeList(Nullable id) { var idParameter = id.HasValue ? new ObjectParameter("Id", id) : new ObjectParameter("Id", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetAccountTypeList", idParameter); } public virtual ObjectResult usp_GetUserType(Nullable id) { var idParameter = id.HasValue ? new ObjectParameter("id", id) : new ObjectParameter("id", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetUserType", idParameter); } public virtual int usp_UpdateUserId(Nullable id, string userId, string olduserId, ObjectParameter status) { var idParameter = id.HasValue ? new ObjectParameter("Id", id) : new ObjectParameter("Id", typeof(int)); var userIdParameter = userId != null ? new ObjectParameter("UserId", userId) : new ObjectParameter("UserId", typeof(string)); var olduserIdParameter = olduserId != null ? new ObjectParameter("olduserId", olduserId) : new ObjectParameter("olduserId", typeof(string)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_UpdateUserId", idParameter, userIdParameter, olduserIdParameter, status); } public virtual ObjectResult usp_GetAccountNumber() { return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetAccountNumber"); } public virtual ObjectResult usp_GetProductEditionByLicense(Nullable iLicenseId) { var iLicenseIdParameter = iLicenseId.HasValue ? new ObjectParameter("iLicenseId", iLicenseId) : new ObjectParameter("iLicenseId", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetProductEditionByLicense", iLicenseIdParameter); } public virtual int usp_DeleteSubscriptionPlan(Nullable id, ObjectParameter status) { var idParameter = id.HasValue ? new ObjectParameter("Id", id) : new ObjectParameter("Id", typeof(byte)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_DeleteSubscriptionPlan", idParameter, status); } public virtual ObjectResult usp_GetSubscriptionPlans(Nullable iEditionId) { var iEditionIdParameter = iEditionId.HasValue ? new ObjectParameter("iEditionId", iEditionId) : new ObjectParameter("iEditionId", typeof(byte)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetSubscriptionPlans", iEditionIdParameter); } public virtual int usp_InsertSubscriptionPlan(Nullable id, string title, Nullable price, Nullable duration, Nullable editionId, Nullable isActive, ObjectParameter status) { var idParameter = id.HasValue ? new ObjectParameter("Id", id) : new ObjectParameter("Id", typeof(byte)); var titleParameter = title != null ? new ObjectParameter("Title", title) : new ObjectParameter("Title", typeof(string)); var priceParameter = price.HasValue ? new ObjectParameter("Price", price) : new ObjectParameter("Price", typeof(decimal)); var durationParameter = duration.HasValue ? new ObjectParameter("Duration", duration) : new ObjectParameter("Duration", typeof(byte)); var editionIdParameter = editionId.HasValue ? new ObjectParameter("EditionId", editionId) : new ObjectParameter("EditionId", typeof(byte)); var isActiveParameter = isActive.HasValue ? new ObjectParameter("IsActive", isActive) : new ObjectParameter("IsActive", typeof(bool)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_InsertSubscriptionPlan", idParameter, titleParameter, priceParameter, durationParameter, editionIdParameter, isActiveParameter, status); } public virtual int usp_UpdateSubscriptionPlan(Nullable id, string title, Nullable price, Nullable duration, Nullable editionId, Nullable isActive, ObjectParameter status) { var idParameter = id.HasValue ? new ObjectParameter("Id", id) : new ObjectParameter("Id", typeof(byte)); var titleParameter = title != null ? new ObjectParameter("Title", title) : new ObjectParameter("Title", typeof(string)); var priceParameter = price.HasValue ? new ObjectParameter("Price", price) : new ObjectParameter("Price", typeof(decimal)); var durationParameter = duration.HasValue ? new ObjectParameter("Duration", duration) : new ObjectParameter("Duration", typeof(byte)); var editionIdParameter = editionId.HasValue ? new ObjectParameter("EditionId", editionId) : new ObjectParameter("EditionId", typeof(byte)); var isActiveParameter = isActive.HasValue ? new ObjectParameter("IsActive", isActive) : new ObjectParameter("IsActive", typeof(bool)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_UpdateSubscriptionPlan", idParameter, titleParameter, priceParameter, durationParameter, editionIdParameter, isActiveParameter, status); } public virtual int usp_InsertAIAUser(string sLoginId, string sPassword, string sFirstname, string sLastname, Nullable iUserTypeId, string sEmailId, Nullable iSecurityQuesId, string sSecurityAnswer, Nullable iCreatorId, Nullable iLicenseId, Nullable iEditionId, ObjectParameter status) { 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 iUserTypeIdParameter = iUserTypeId.HasValue ? new ObjectParameter("iUserTypeId", iUserTypeId) : new ObjectParameter("iUserTypeId", typeof(byte)); var sEmailIdParameter = sEmailId != null ? new ObjectParameter("sEmailId", sEmailId) : new ObjectParameter("sEmailId", typeof(string)); var iSecurityQuesIdParameter = iSecurityQuesId.HasValue ? new ObjectParameter("iSecurityQuesId", iSecurityQuesId) : new ObjectParameter("iSecurityQuesId", typeof(byte)); var sSecurityAnswerParameter = sSecurityAnswer != null ? new ObjectParameter("sSecurityAnswer", sSecurityAnswer) : new ObjectParameter("sSecurityAnswer", typeof(string)); var iCreatorIdParameter = iCreatorId.HasValue ? new ObjectParameter("iCreatorId", iCreatorId) : new ObjectParameter("iCreatorId", typeof(int)); var iLicenseIdParameter = iLicenseId.HasValue ? new ObjectParameter("iLicenseId", iLicenseId) : new ObjectParameter("iLicenseId", typeof(int)); var iEditionIdParameter = iEditionId.HasValue ? new ObjectParameter("iEditionId", iEditionId) : new ObjectParameter("iEditionId", typeof(byte)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_InsertAIAUser", sLoginIdParameter, sPasswordParameter, sFirstnameParameter, sLastnameParameter, iUserTypeIdParameter, sEmailIdParameter, iSecurityQuesIdParameter, sSecurityAnswerParameter, iCreatorIdParameter, iLicenseIdParameter, iEditionIdParameter, status); } public virtual int usp_UpdateblockedUser(Nullable id, ObjectParameter status) { var idParameter = id.HasValue ? new ObjectParameter("Id", id) : new ObjectParameter("Id", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_UpdateblockedUser", idParameter, status); } public virtual ObjectResult usp_GetSearchUserList(string sFirstName, string sLastName, string sEmailId, string sAccoutNumber, Nullable iUserTypeId, Nullable iAccountTypeId, Nullable iLoginUserType) { 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 sEmailIdParameter = sEmailId != null ? new ObjectParameter("sEmailId", sEmailId) : new ObjectParameter("sEmailId", typeof(string)); var sAccoutNumberParameter = sAccoutNumber != null ? new ObjectParameter("sAccoutNumber", sAccoutNumber) : new ObjectParameter("sAccoutNumber", typeof(string)); var iUserTypeIdParameter = iUserTypeId.HasValue ? new ObjectParameter("iUserTypeId", iUserTypeId) : new ObjectParameter("iUserTypeId", typeof(int)); var iAccountTypeIdParameter = iAccountTypeId.HasValue ? new ObjectParameter("iAccountTypeId", iAccountTypeId) : new ObjectParameter("iAccountTypeId", typeof(int)); var iLoginUserTypeParameter = iLoginUserType.HasValue ? new ObjectParameter("iLoginUserType", iLoginUserType) : new ObjectParameter("iLoginUserType", typeof(int)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetSearchUserList", sFirstNameParameter, sLastNameParameter, sEmailIdParameter, sAccoutNumberParameter, iUserTypeIdParameter, iAccountTypeIdParameter, iLoginUserTypeParameter); } public virtual int usp_UpdateAIAUser(string sLoginId, string sPassword, string sFirstname, string sLastname, string sEmailId, Nullable id, Nullable iCreatorId, Nullable isActive, ObjectParameter status) { 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 sEmailIdParameter = sEmailId != null ? new ObjectParameter("sEmailId", sEmailId) : new ObjectParameter("sEmailId", typeof(string)); var idParameter = id.HasValue ? new ObjectParameter("id", id) : new ObjectParameter("id", typeof(int)); var iCreatorIdParameter = iCreatorId.HasValue ? new ObjectParameter("iCreatorId", iCreatorId) : new ObjectParameter("iCreatorId", typeof(int)); var isActiveParameter = isActive.HasValue ? new ObjectParameter("isActive", isActive) : new ObjectParameter("isActive", typeof(byte)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_UpdateAIAUser", sLoginIdParameter, sPasswordParameter, sFirstnameParameter, sLastnameParameter, sEmailIdParameter, idParameter, iCreatorIdParameter, isActiveParameter, status); } } }