mirror of https://github.com/abpframework/abp.git
committed by
GitHub
64 changed files with 2310 additions and 62 deletions
@ -0,0 +1,18 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using Volo.Abp.Domain.Entities; |
|||
using JetBrains.Annotations; |
|||
|
|||
namespace Volo.Abp.Data |
|||
{ |
|||
public static class ConcurrencyStampExtensions |
|||
{ |
|||
public static void SetConcurrencyStampIfNotNull(this IHasConcurrencyStamp entity, [CanBeNull] string concurrencyStamp) |
|||
{ |
|||
if (!concurrencyStamp.IsNullOrEmpty()) |
|||
{ |
|||
entity.ConcurrencyStamp = concurrencyStamp; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
@ -1,15 +1,18 @@ |
|||
using System; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Domain.Entities; |
|||
using Volo.Blogging.Posts; |
|||
|
|||
namespace Volo.Blogging.Comments.Dtos |
|||
{ |
|||
public class CommentWithDetailsDto : FullAuditedEntityDto<Guid> |
|||
public class CommentWithDetailsDto : FullAuditedEntityDto<Guid>, IHasConcurrencyStamp |
|||
{ |
|||
public Guid? RepliedCommentId { get; set; } |
|||
|
|||
public string Text { get; set; } |
|||
|
|||
public BlogUserDto Writer { get; set; } |
|||
|
|||
public string ConcurrencyStamp { get; set; } |
|||
} |
|||
} |
|||
|
|||
@ -1,10 +1,12 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Volo.Abp.Domain.Entities; |
|||
|
|||
namespace Volo.Blogging.Comments.Dtos |
|||
{ |
|||
public class UpdateCommentDto |
|||
public class UpdateCommentDto : IHasConcurrencyStamp |
|||
{ |
|||
[Required] |
|||
public string Text { get; set; } |
|||
public string ConcurrencyStamp { get; set; } |
|||
} |
|||
} |
|||
|
|||
File diff suppressed because it is too large
@ -0,0 +1,24 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace Volo.CmsKit.Migrations |
|||
{ |
|||
public partial class ConcurrencyStampUpdate : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "CmsComments", |
|||
type: "nvarchar(40)", |
|||
maxLength: 40, |
|||
nullable: true); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "ConcurrencyStamp", |
|||
table: "CmsComments"); |
|||
} |
|||
} |
|||
} |
|||
@ -1,13 +1,15 @@ |
|||
using System; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Domain.Entities; |
|||
|
|||
namespace Volo.CmsKit.Admin.Blogs |
|||
{ |
|||
[Serializable] |
|||
public class BlogDto : EntityDto<Guid> |
|||
public class BlogDto : EntityDto<Guid>, IHasConcurrencyStamp |
|||
{ |
|||
public string Name { get; set; } |
|||
|
|||
public string Slug { get; set; } |
|||
public string ConcurrencyStamp { get; set; } |
|||
} |
|||
} |
|||
|
|||
@ -1,15 +1,18 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Volo.Abp.Domain.Entities; |
|||
using Volo.Abp.Validation; |
|||
using Volo.CmsKit.Tags; |
|||
|
|||
namespace Volo.CmsKit.Admin.Tags |
|||
{ |
|||
[Serializable] |
|||
public class TagUpdateDto |
|||
public class TagUpdateDto : IHasConcurrencyStamp |
|||
{ |
|||
[Required] |
|||
[DynamicMaxLength(typeof(TagConsts), nameof(TagConsts.MaxNameLength))] |
|||
public string Name { get; set; } |
|||
|
|||
public string ConcurrencyStamp { get; set; } |
|||
} |
|||
} |
|||
|
|||
@ -1,21 +1,32 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Domain.Entities; |
|||
|
|||
namespace Volo.CmsKit.Menus |
|||
{ |
|||
[Serializable] |
|||
public class MenuItemDto : AuditedEntityDto<Guid> |
|||
public class MenuItemDto : AuditedEntityDto<Guid>, IHasConcurrencyStamp |
|||
{ |
|||
public Guid? ParentId { get; set; } |
|||
|
|||
public string DisplayName { get; set; } |
|||
|
|||
public bool IsActive { get; set; } |
|||
|
|||
public string Url { get; set; } |
|||
|
|||
public string Icon { get; set; } |
|||
|
|||
public int Order { get; set; } |
|||
|
|||
public string Target { get; set; } |
|||
|
|||
public string ElementId { get; set; } |
|||
|
|||
public string CssClass { get; set; } |
|||
|
|||
public Guid? PageId { get; set; } |
|||
|
|||
public string ConcurrencyStamp { get; set; } |
|||
} |
|||
} |
|||
|
|||
@ -1,13 +1,16 @@ |
|||
using System; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Domain.Entities; |
|||
|
|||
namespace Volo.CmsKit.Tags |
|||
{ |
|||
[Serializable] |
|||
public class TagDto : EntityDto<Guid> |
|||
public class TagDto : EntityDto<Guid>, IHasConcurrencyStamp |
|||
{ |
|||
public string EntityType { get; set; } |
|||
|
|||
public string Name { get; set; } |
|||
|
|||
public string ConcurrencyStamp { get; set; } |
|||
} |
|||
} |
|||
|
|||
@ -1,15 +1,18 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Volo.Abp.Domain.Entities; |
|||
using Volo.Abp.Validation; |
|||
using Volo.CmsKit.Comments; |
|||
|
|||
namespace Volo.CmsKit.Public.Comments |
|||
{ |
|||
[Serializable] |
|||
public class UpdateCommentInput |
|||
public class UpdateCommentInput : IHasConcurrencyStamp |
|||
{ |
|||
[Required] |
|||
[DynamicStringLength(typeof(CommentConsts), nameof(CommentConsts.MaxTextLength))] |
|||
public string Text { get; set; } |
|||
|
|||
public string ConcurrencyStamp { get; set; } |
|||
} |
|||
} |
|||
|
|||
@ -1,10 +1,13 @@ |
|||
using System; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Domain.Entities; |
|||
|
|||
namespace Volo.Abp.TenantManagement |
|||
{ |
|||
public class TenantDto : ExtensibleEntityDto<Guid> |
|||
public class TenantDto : ExtensibleEntityDto<Guid>, IHasConcurrencyStamp |
|||
{ |
|||
public string Name { get; set; } |
|||
|
|||
public string ConcurrencyStamp { get; set; } |
|||
} |
|||
} |
|||
@ -1,7 +1,9 @@ |
|||
namespace Volo.Abp.TenantManagement |
|||
using Volo.Abp.Domain.Entities; |
|||
|
|||
namespace Volo.Abp.TenantManagement |
|||
{ |
|||
public class TenantUpdateDto : TenantCreateOrUpdateDtoBase |
|||
public class TenantUpdateDto : TenantCreateOrUpdateDtoBase, IHasConcurrencyStamp |
|||
{ |
|||
|
|||
public string ConcurrencyStamp { get; set; } |
|||
} |
|||
} |
|||
Loading…
Reference in new issue