Note that there are some explanatory texts on larger screens.

plurals
  1. POList<User> Property Not Generated With Ria Service
    primarykey
    data
    text
    <p>I have a RIA service and I am finding that my regular properties are being generated for RIA service (ex: string, int, etc).</p> <p>I have a custom type User which is described below. My List property is not being generated as part of the Ria service. Any ideas?</p> <p>Example below shows the property that is not being generated in RIA Service followed by the User class </p> <pre><code> public List&lt;User&gt; Users { get { if(this.users == null) { this.users = new List&lt;User&gt;(); } return this.users; } set { this.users = new List&lt;User&gt;(value); } } using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ServiceModel.DomainServices.Server; namespace MyNamespace { public class User { [Key] public int? Id { get; set; } public string Login { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public string DisplayName { get; set; } public string Email { get; set; } public string Title { get; set; } public string Department { get; set; } public string Password { get; set; } public string Source { get; set; } public bool? IsEnabled { get; set; } public bool IsInstanceAdmin { get; set; } public byte[] Image { get; set; } //public bool IsDeleted { get; set; } private IList&lt;UserGroupMembership&gt; _userGroups; /// &lt;summary&gt; /// Gets or sets the user groups. /// &lt;/summary&gt; /// &lt;value&gt;The user groups.&lt;/value&gt; [Include] [Association("UserGroups", "Id", "UserId")] public IList&lt;UserGroupMembership&gt; UserGroups { get { if (_userGroups == null) { _userGroups = new List&lt;UserGroupMembership&gt;(); } return _userGroups; } set { _userGroups = value; } } private IList&lt;RoleAssignment&gt; _roleIdentity; /// &lt;summary&gt; /// Gets or sets the role identities. /// &lt;/summary&gt; /// &lt;value&gt;The role identities.&lt;/value&gt; [Include] [Association("RoleIdentities", "Id", "UserId")] public IList&lt;RoleAssignment&gt; RoleAssignments { get { if (_roleIdentity == null) { _roleIdentity = new List&lt;RoleAssignment&gt;(); } return _roleIdentity; } set { _roleIdentity = value; } } } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload