A source generator for automatically implementing audit properties in C# classes.
- 🚀 Zero runtime overhead - all code is generated at compile time
- 💡 Analyzer and code fixes for better audit interface usage
- 🔄 Supports inheritance and nested types
- 🛡️ Full type safety with generic support
- 📝 XML documentation included
dotnet add package Ling.Audit
// Just implement the interface
public partial class Post : IFullAudited<int?>
{
public string Title { get; set; }
public string Content { get; set; }
}
// All audit properties are automatically generated
// - CreatedBy, CreatedAt
// - LastModifiedBy, LastModifiedAt
// - IsDeleted, DeletedBy, DeletedAt
See detailed documentation for:
- Available interfaces and properties
- Advanced usage examples
- Best practices
- API reference
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request