Releases: vipwan/Biwen.AutoClassGen
Releases · vipwan/Biwen.AutoClassGen
1.5.4 released
- 修复AddFileHeaderCodeFixProvider存在预编译指令被覆盖的情况
Full Changelog: 1.5.3...1.5.4
1.5.3 released
- 重构
AutoDto
- 提供
MapperToPartial
用于自定义Mapper实现 #4 (comment)
Full Changelog: 1.5.2...1.5.3
1.5.2 released
- 提供
[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; }
}
Full Changelog: 1.5.1...1.5.2
1.5.1.2 released
- 提供
utf-8
encoding 编码分析 - Full Changelog: 1.5.0...1.5.1
1.5.0 released
1.3.9.9 released
1.3.8 released
- 提供程序集的元数据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
- add version gen
Full Changelog: 1.3.6...1.3.7
1.3.6 released
- 提供
AutoDecorFor<T>
支持.用于标注于装饰器实现上 - 修复已知BUG,优化部分代码
Full Changelog: 1.3.5...1.3.6
1.3.5 released
build-in decorate extension & remove Scrutor
using
Full Changelog: 1.3.3...1.3.5