Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Source-generated Repository pattern for .NET applications — automatically generates strongly-typed data access layers at compile time.

Notifications You must be signed in to change notification settings

Adiras/smart-repo

Repository files navigation


<query_method> ::= <add_query_method> | <get_query_method> | <count_query_method> | <exists_query_method> | <update_query_method> | <remove_query_method>

<add_query_method>
<get_query_method> ::= "Get" <select_expression> {"By" <search_expression>} [<order_expression>]
<count_query_method>
<exists_query_method>
<update_query_method>
<remove_query_method>

<select_expression> ::= "All" | {"First" <number>}
<search_expression> ::= <search_criteria> {<conjunction> <search_criteria>}
<search_criteria> ::= <property> ("StartingWith" | "Equals")
<conjunction> ::= "And" | "Or"
<property> ::= ...
<number> ::=







<query_method> ::= <method_prefix> <domain_property_expression> [<predicate_expression>] [<order_by_expression>]

<method_prefix> ::= "find" | "read" | "get" | "query" | "count" | "delete" | "remove" | "exists"

<domain_property_expression> ::= "By" <property> {<conjunction> <property>}

<predicate_expression> ::= <comparison_operator> | <logical_operator> | <keyword_expression>

<comparison_operator> ::= "Is" <equality_operator>
                         | "Equals"
                         | "Not" <equality_operator>
                         | "LessThan" | "LessThanEqual"
                         | "GreaterThan" | "GreaterThanEqual"
                         | "Like" | "NotLike"
                         | "In" | "NotIn"
                         | "Between"

<equality_operator> ::= "True" | "False" | "Null" | "NotNull" | "Empty" | "NotEmpty"

<logical_operator> ::= "And" | "Or"

<keyword_expression> ::= "StartingWith" | "EndingWith" | "Containing" | "OrderBy" | "Top" <number> | "First" <number>

<order_by_expression> ::= "OrderBy" <property> ("Asc" | "Desc")

<property> ::= <valid_property_name>
<conjunction> ::= "And" | "Or"
<number> ::= <digit> {<digit>}
<digit> ::= "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"

About

Source-generated Repository pattern for .NET applications — automatically generates strongly-typed data access layers at compile time.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages