Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Runaho authored Jun 18, 2020
1 parent c565ef6 commit 70d43cb
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Generate Struct or Class of the Table or Query
* Must be Same Order Table
* Must be similar types.
* if you want to update you must define one DataObjectField
* Table Name can be getted via class Display Name attribute. If you don't have a D.N.A. code will use class name. Sturct is working only struct name.
*/

public struct Users
Expand All @@ -41,6 +42,25 @@ public struct Users
[DisplayName("Age")]
public int PersonAge { get; set; }
}

// OR
[DisplayName("Users")]
public class MyUsers
{
[DisplayName("ID"), DataObjectField(true)]
public int id { get; set; }

[DisplayName("Name")]
public string Name { get; set; }

[DisplayName("Surname")]
public string Surname { get; set; }

[DisplayName("Age")]
public int PersonAge { get; set; }
}



//Set the path.
Expand Down

0 comments on commit 70d43cb

Please sign in to comment.