Sources/Infrastructure/Assemblers/IdentityRoleAssembler.cs
/// <summary>
/// assemble from identity role to dynamic parameters
/// </summary>
/// <param name="role">identity role object</param>
/// <returns>dynamic parameters</returns>
assemble from identity role to dynamic parameters
assemble from identity role to dynamic parameters
internal static DynamicParameters ToDynamicParameters(this Role role)
        {
            if (role == null)
            {
                return null;
            }
            DynamicParameters dynamicParameters = new DynamicParameters();
            dynamicParameters.Add("@Name", role.Name);
            dynamicParameters.Add("@NormalizedName", role.NormalizedName);
            dynamicParameters.Add("@ConcurrencyStamp", role.ConcurrencyStamp);
            return dynamicParameters;
        }
internal static DynamicParameters ToDynamicParameters ( this Role role ) { if ( role == null ) { return null ; } DynamicParameters dynamicParameters = new DynamicParameters ( ) ; dynamicParameters . Add ( " " , role . Name ) ; dynamicParameters . Add ( " " , role . NormalizedName ) ; dynamicParameters . Add ( " " , role . ConcurrencyStamp ) ; return dynamicParameters ; }
assemble from identity role to dynamic parameters
assemble from identity role to dynamic parameters
None
Role
this
role
identity role object
identity role object