33 lines
798 B
C#
33 lines
798 B
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
using Volo.Abp.EventBus;
|
|||
|
|
using Volo.Abp;
|
|||
|
|
|
|||
|
|
namespace JiShe.CollectBus.Common.Attributes
|
|||
|
|
{
|
|||
|
|
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
|
|||
|
|
public class CassandraTableAttribute : Attribute
|
|||
|
|
{
|
|||
|
|
public CassandraTableAttribute(string? name = null,string? keyspace =null)
|
|||
|
|
{
|
|||
|
|
Name = name;
|
|||
|
|
Keyspace = keyspace;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public virtual string? Name { get; }
|
|||
|
|
|
|||
|
|
public virtual string? Keyspace { get; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
|
|||
|
|
public class CassandraIgnoreAttribute : Attribute
|
|||
|
|
{
|
|||
|
|
public CassandraIgnoreAttribute()
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|