sqlsugar/Src/OracleUS7ASCII/SqlSugar/SpliteTable/SplitTableAttribute.cs

39 lines
920 B
C#
Raw Permalink Normal View History

2025-05-11 16:20:50 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SqlSugar
{
[AttributeUsage(AttributeTargets.Class, Inherited = true)]
public class SplitTableAttribute : Attribute
{
public SplitType SplitType { get; set; }
public SplitTableAttribute(SplitType splitType)
{
this.SplitType = splitType;
}
}
[AttributeUsage(AttributeTargets.Property, Inherited = true)]
public class SplitFieldAttribute : Attribute
{
public SplitFieldAttribute()
{
}
}
[AttributeUsage(AttributeTargets.Property, Inherited = true)]
public class TimeDbSplitFieldAttribute : Attribute
{
public DateType? DateType { get; set; }
public TimeDbSplitFieldAttribute(DateType type)
{
DateType = type;
}
}
}