title: How to seed NetTopologySuite.Geometries.Point data from a Json file in ASP.Net core
body: <p>I want to seed "Location" data for my user object from my seed file</p>
  
  <p>The c# object, where Point is a <code>NetTopologySuite.Geometries.Point</code> is part of my user object</p>
  
  <pre><code>  public class User: IdentityUser&lt;int&gt; {
        // member data here
        public Point Location { get; set; } // has lat/lng data points
    }
  </code></pre>
  
  <p>I seed data to my db on startup by doing something like this</p>
  
  <pre><code>public void SeedUsers()
  {
      if (!_userManager.Users.Any())
      {
          var userData = System.IO.File.ReadAllText("Data/UserSeedData.json");
          var users = JsonConvert.DeserializeObject&lt;List&lt;User&gt;&gt;(userData);
  
          var roles = new List&lt;Role&gt;
          {
              new Role{Name = "Member"},
              new Role{Name = "Admin"},
              new Role{Name = "Moderator"},
              new Role{Name = "VIP"},
          };
  
          foreach (var role in roles)
          {
              _roleManager.CreateAsync(role).Wait();
          }
  
          foreach (var user in users)
          {
              user.Photos.SingleOrDefault().IsApproved = true;
              _userManager.CreateAsync(user, "password").Wait();
              _userManager.AddToRoleAsync(user, "Member").Wait();
          }
       }
   }
  </code></pre>
  
  <p>with a json file "UserSeedData.json" of json arrays like this and I want to be able to stick some kind of 'Location' data in there that is representative of lng/lat data points. </p>
  
  <pre class="lang-json prettyprint-override"><code>{
    "Email": "myemailaddress@gmail.com",
    "Username": "Lola",
    "Gender": "female",
    "DateOfBirth": "1994-02-21",
    "Password": "password",
    "Created": "2017-08-02",
    "LastActive": "2017-08-02",
    "Introduction": "blah blah blah",
    "LookingFor": "blah blah blah",
    "City": "San Francisco",
    "Country": "United States",
    "Longitude": -122.431297,
    "Latitude": 37.773972,
    "Location": // something here!!!
    "Photos": [{
      "url": "https://randomuser.me/api/portraits/women/3.jpg",
      "isMain": true,
      "description": "Non deserunt labore sunt ex laboris et adipisicing ullamco officia minim."
    }]
  }
  </code></pre>
  
  <p>Now I know in my seed method I could do something like this, but I'm looking for a way to include it in my .json file, so I can use different data points </p>
  
  <pre><code>foreach (var user in users)
  {
      user.Photos.SingleOrDefault().IsApproved = true;
      user.Location = new Point(-122.4194155, 37.7749295) { SRID = 4326 };
      _userManager.CreateAsync(user, "password").Wait();
      _userManager.AddToRoleAsync(user, "Member").Wait();
  }
  </code></pre>