Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AddAllFields does not actually add all fields #102

Open
mbithy opened this issue Feb 3, 2019 · 0 comments
Open

AddAllFields does not actually add all fields #102

mbithy opened this issue Feb 3, 2019 · 0 comments

Comments

@mbithy
Copy link

mbithy commented Feb 3, 2019

if I have a class such as

public class Account {
 public int SYSID {
  get;
  set;
 }
 public int AccountTypeSYSID {
  get;
  set;
 }
 public int ProfileSYSID {
  get;
  set;
 }
 public string AccountName {
  get;
  set;
 }
 public double StartingBalance {
  get;
  set;
 }
 public double CurrentBalance {
  get;
  set;
 }
 public Profile Profile() {
  using(var ops = new ProfileDbOps(DbConnection, true)) {
   returnops.GetBySYSID(ProfileSYSID);
  }
 }
}

and try to run the query

{
  account(sysid:12){
    accountTypeSYSID
    accountName
    startingBalance
    currentBalance
    dateCreated
    lastUpdate
    Profile{
      SYSID
      firstName
      middleName
      lastNames
    }
  }
}

you get the exception profile is not a field of type Account but profile is a field on account?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant