Improved documentation, bumped package version to 1.0.6
This commit is contained in:
		@@ -6,7 +6,7 @@ namespace MontoyaTech.MySqlPlus.Example
 | 
			
		||||
    public class Program
 | 
			
		||||
    {
 | 
			
		||||
        [MySqlRow("cars")]
 | 
			
		||||
        [MySqlRowIndex("make_model", "model", "year")]
 | 
			
		||||
        [MySqlRowIndex("model_year", "model", "year")]
 | 
			
		||||
        [MySqlRowIndex("year", "year")]
 | 
			
		||||
        public class Car
 | 
			
		||||
        {
 | 
			
		||||
 
 | 
			
		||||
@@ -7,7 +7,7 @@
 | 
			
		||||
    <AssemblyName>MontoyaTech.MySqlPlus</AssemblyName>
 | 
			
		||||
    <RootNamespace>MontoyaTech.MySqlPlus</RootNamespace>
 | 
			
		||||
    <Title>MontoyaTech.MySqlPlus</Title>
 | 
			
		||||
    <Version>1.0.5</Version>
 | 
			
		||||
    <Version>1.0.6</Version>
 | 
			
		||||
    <Company>MontoyaTech</Company>
 | 
			
		||||
    <Description>A simple C# library to help work with MySql.</Description>
 | 
			
		||||
    <Copyright>MontoyaTech 2023</Copyright>
 | 
			
		||||
 
 | 
			
		||||
@@ -13,10 +13,20 @@ namespace MontoyaTech.MySqlPlus
 | 
			
		||||
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = false, Inherited = true)]
 | 
			
		||||
    public class MySqlRow : Attribute
 | 
			
		||||
    {
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// The name of the table.
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        public string Name;
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// Creates a new default MySqlRow.
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        public MySqlRow() { }
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// Creates a new MySqlRow with a name.
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="name"></param>
 | 
			
		||||
        public MySqlRow(string name)
 | 
			
		||||
        {
 | 
			
		||||
            this.Name = name;
 | 
			
		||||
 
 | 
			
		||||
@@ -13,12 +13,27 @@ namespace MontoyaTech.MySqlPlus
 | 
			
		||||
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = true, Inherited = true)]
 | 
			
		||||
    public class MySqlRowIndex : Attribute
 | 
			
		||||
    {
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// The name of this index.
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        public string Name;
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// The name of the columns that belong to this index.
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        public string[] Columns;
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// Creates a new default MySqlRowIndex.
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        public MySqlRowIndex() { }
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// Creates a new default MySqlRowIndex with a name and column names.
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="name"></param>
 | 
			
		||||
        /// <param name="columns"></param>
 | 
			
		||||
        /// <exception cref="ArgumentException"></exception>
 | 
			
		||||
        public MySqlRowIndex(string name, params string[] columns)
 | 
			
		||||
        {
 | 
			
		||||
            if (columns == null || columns.Length == 0)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user