ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Tupitsyn (Jira)" <j...@apache.org>
Subject [jira] [Updated] (IGNITE-12532) .NET: Recognize fields with KeyAttribute and set QueryEntity.KeyFieldName
Date Mon, 13 Jan 2020 17:49:00 GMT

     [ https://issues.apache.org/jira/browse/IGNITE-12532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pavel Tupitsyn updated IGNITE-12532:
------------------------------------
    Labels: .NET newbie  (was: .NET)

> .NET: Recognize fields with KeyAttribute and set QueryEntity.KeyFieldName
> -------------------------------------------------------------------------
>
>                 Key: IGNITE-12532
>                 URL: https://issues.apache.org/jira/browse/IGNITE-12532
>             Project: Ignite
>          Issue Type: Bug
>          Components: platforms
>            Reporter: Pavel Tupitsyn
>            Assignee: Pavel Tupitsyn
>            Priority: Major
>              Labels: .NET, newbie
>
> Populate QueryEntity.KeyFieldName automatically when System.ComponentModel.DataAnnotations.KeyAttribute
is present.
> This:
> {code}
> class Person
> {
>     [QuerySqlField]
>     [Key]
>     public string EntityId {get; set;}
> }
> ...
> new QueryEntity(typeof(string), typeof(Person))
> {code}
> Should be equivalent to this:
> {code}
>         <queryEntity keyFieldName="EntityId" keyType="System.String" tableName="ENTITIESTABLEINFO"
valueType="ENTITIESTABLEINFO">
>           <fields>
>             <queryField fieldType="System.String" name="EntityId" />
>           </fields>
>         </queryEntity>
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message