Click here to Skip to main content
15,895,011 members
Articles / Web Development

Service Based Membership Providers for ASP.NET

Rate me:
Please Sign up or sign in to vote.
4.93/5 (45 votes)
4 May 2014CPOL29 min read 132.1K   8.2K   173  
Service based, multi-application ASP.NET custom membership, role and profile providers with a hierarchical role system.
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool from CryptoGateway Software Inc.
//     Tool name: CGW X-Script RDB visual Layer Generator
//
//     Archymeta Information Technologies Co., Ltd.
//
//     Changes to this file, could be overwritten if the code is re-generated.
//     Add (if not yet) a code-manager node to the generator to specify 
//     how existing files are processed.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Configuration;
using System.Collections.Generic;
using System.Reflection;
using System.Linq;
using System.Linq.Expressions;
using System.Threading;
using System.Runtime.Serialization;

namespace CryptoGateway.RDB.Data.AspNetMember
{
    /// <summary>
    /// Available entity set processing states
    /// </summary>
    [DataContract]
    public enum EntitySetProcState
    {
        /// <summary>
        /// Default value.
        /// </summary>
        [EnumMember]
        Unknown,
        /// <summary>
        /// The set is being processed.
        /// </summary>
        [EnumMember]
        Processing,
        /// <summary>
        /// The set is not being processed.
        /// </summary>
        [EnumMember]
        Stopped,
        /// <summary>
        /// The processing of the set is completed, succesffully.
        /// </summary>
        [EnumMember]
        Completed,
        /// <summary>
        /// The processing of the set is completed. However not all desired member are reached, something is wrong.
        /// </summary>
        [EnumMember]
        Incomplete,
        /// <summary>
        /// There are concurrent update conflicts, proper resolutions are required.
        /// </summary>
        [EnumMember]
        ChangeConflict,
        /// <summary>
        /// The processing of the set failed. It ends up in at least one error.
        /// </summary>
        [EnumMember]
        Failed
    }

    /// <summary>
    /// Progress event.
    /// </summary>
    [DataContract]
    public class EnumProgressEvent
    {
        /// <summary>
        /// The progressing set.
        /// </summary>
        [DataMember]
        public EntitySetType SetType
        {
            get { return _setType; }
            set { _setType = value; }
        }
        private EntitySetType _setType = EntitySetType.Unknown;

        /// <summary>
        /// Whether or not the event is for entity loading (or processing);
        /// </summary>
        [DataMember]
        public bool IsLoadEvent
        {
            get { return _isLoadEvent; }
            set { _isLoadEvent = value; }
        }
        private bool _isLoadEvent = false;

        /// <summary>
        /// The percentage of entities that have been processed.
        /// </summary>
        [DataMember]
        public Double DonePercent
        {
            get;
            set;
        }

        /// <summary>
        /// The estimated time to complete
        /// </summary>
        [DataMember]
        public Nullable<TimeSpan> EstimatedTime
        {
            get;
            set;
        }

    }

    /// <summary>
    /// Progress state changed event.
    /// </summary>
    [DataContract]
    public class EnumProgressStateEvent
    {
        /// <summary>
        /// The progressing set.
        /// </summary>
        [DataMember]
        public EntitySetType SetType
        {
            get { return _setType; }
            set { _setType = value; }
        }
        private EntitySetType _setType = EntitySetType.Unknown;

        /// <summary>
        /// The current state of processing.
        /// </summary>
        [DataMember]
        public EntitySetProcState ProcState
        {
            get { return _procState; }
            set { _procState = value; }
        }
        private EntitySetProcState _procState = EntitySetProcState.Unknown;

        /// <summary>
        /// The total number of entities to process.
        /// </summary>
        [DataMember]
        public Int64 TotalItems
        {
            get;
            set;
        }

    }

    /// <summary>
    /// Concurrent synchronization conflict record.
    /// </summary>
    [DataContract]
    public class ConcurrentUpdateConflicts<EntityT> where EntityT : class
    {
        /// <summary>
        /// The modified entity to be updated into the data set.
        /// </summary>
        [DataMember]
        public EntityT UpdatingItem
        {
            get;
            set;
        }

        /// <summary>
        /// The conflicting entity that was modified by other agents after the present entity been loaded and before the present update attempt.
        /// </summary>
        [DataMember]
        public EntityT ConflictItem
        {
            get;
            set;
        }

    }

}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Founder CryptoGateway Software Inc.
Canada Canada


His interests in software research and development include security, domain specific meta-language development technologies and tools, meta-language driven code generation, generation of non-invasive and virtual SQL database for "un-structured" data (sqlization), automated relational data service production technologies, file system sqlization technologies and products, structured multi-lingual documentation tools and technologies, sqlization of user's personal data, like emails, etc..


He was a physicist before year 2000. He studied theoretical physics (the hidden symmetry between the past and future, quantum field theories, mirror universe, cosmological dark energies etc.) in which he think to had made fundamental breakthroughs[^] but the community is either not ready for it or is actively rejecting/ignoring it Smile | :) .



It struck me on Apr. 11, 2023 that the said theory above can even generate General Relativity naturally after a recent discussion in the Insider News group that triggers a rethinking of the subject on my side. The first stage of the work is completed in Sept. 2023, it is and will be continue to be published online

  • On Vacuum
  • Quantum and Gravity







    Most recent software system to share:



    • V-NET[^] - Full stack virtualization management system including networking, storage, virtual machines and containers, with an emphasis on networking ... to be released.

Comments and Discussions