Skip to content

Releases: vipwan/Biwen.AutoClassGen

1.5.4 released

27 Nov 08:40
Compare
Choose a tag to compare
  • 修复AddFileHeaderCodeFixProvider存在预编译指令被覆盖的情况

Full Changelog: 1.5.3...1.5.4

1.5.3 released

12 Nov 09:31
Compare
Choose a tag to compare
  • 重构AutoDto
  • 提供MapperToPartial用于自定义Mapper实现 #4 (comment)

Full Changelog: 1.5.2...1.5.3

1.5.2 released

08 Nov 08:27
Compare
Choose a tag to compare
  • 提供[AutoDto]record记录的支持
  • 优化分析器代码
public class User
{
    public string Id { get; set; } = null!;
    public string FirstName { get; set; } = null!;
    public string LastName { get; set; } = null!;
    public string? FullName => $"{FirstName} {LastName}";
}

[AutoDto(typeof(User), nameof(User.Email))]
public partial record User4Dto
{
    public string? Wooo { get; set; }
}

[AutoDto<User>(nameof(User.Id))]
public partial record class User5Dto(int Id)
{
    /// <summary>
    /// 如果DTO存在主构造函数,必须有无参构造函数,否则Mapper ToDto方法会报错
    /// </summary>
    public User5Dto() : this(1) { }

    public string? Wooo { get; set; }
}

#4

Full Changelog: 1.5.1...1.5.2

1.5.1.2 released

20 Sep 09:44
Compare
Choose a tag to compare
  • 提供utf-8 encoding 编码分析
  • Full Changelog: 1.5.0...1.5.1

1.5.0 released

18 Sep 16:17
Compare
Choose a tag to compare
  • 提供文件范围命名空间分析

image

Full Changelog: 1.3.9...1.5.0

1.3.9.9 released

07 Sep 08:33
Compare
Choose a tag to compare

#8 提供添加文件头部信息的分析器和修复器

异步方法Async结尾的修复器和分析器

Full Changelog: 1.3.8...1.3.9

1.3.8 released

05 Sep 07:07
Compare
Choose a tag to compare
  • 提供程序集的元数据Metadata 常量生成

将生成如下的代码片段:

// <auto-generated/>
namespace {namespace}.Generated;
[global::System.CodeDom.Compiler.GeneratedCode("Biwen.AutoClassGen", "1.3.8")]
public static class AssemblyMetadata
{
    public const string Company = "Biwen.AutoClassGen.TestConsole";
    public const string Configuration = "Debug";
    public const string FileVersion = "2.0.2";
    public const string InformationalVersion = "2.0.1+a77d17d67a65a8502a09c5b3f11b5805a6d55d58";
    public const string Product = "Biwen.AutoClassGen.TestConsole";
    public const string Title = "Biwen.AutoClassGen.TestConsole";
    public const string Version = "2.0.1.0";
    public const string TargetFramework = ".NETCoreApp,Version=v8.0";
}

Full Changelog: 1.3.7...1.3.8

1.3.7.2 released

03 Sep 09:20
Compare
Choose a tag to compare

1.3.6 released

30 Aug 12:37
Compare
Choose a tag to compare
  1. 提供 AutoDecorFor<T>支持.用于标注于装饰器实现上
  2. 修复已知BUG,优化部分代码

Full Changelog: 1.3.5...1.3.6

1.3.5 released

29 Aug 06:44
Compare
Choose a tag to compare

build-in decorate extension & remove Scrutor using

Full Changelog: 1.3.3...1.3.5