Added check if given class is invalid Changed BuildQuery to support recursive object[] copying Changed structure Added DbFunction to handle all Db-related stuff
23 lines
755 B
C#
23 lines
755 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace eu.railduction.netcore.dll.Database_Attribute_System.Attributes
|
|
{
|
|
[AttributeUsage(AttributeTargets.Field, Inherited = false, AllowMultiple = false)]
|
|
public class DbAttribute : Attribute
|
|
{
|
|
public string _attributeName;
|
|
|
|
/// <summary>
|
|
/// Marks variable as database-attribute
|
|
/// </summary>
|
|
/// <param name="dbAttributeName">Name of database-attribute (case-sensitivity is determined from database-attribute-settings) ['null' if the same as field-name]</param>
|
|
public DbAttribute(string attributeName = null)
|
|
{
|
|
this._attributeName = attributeName;
|
|
}
|
|
}
|
|
}
|