コード例 #1
0
    public override object ReadJson(JsonReader reader, Type objectType, JsonSerializer serializer)
    {
      JObject o = JObject.Load(reader);

      Department department = new Department();
      department.DepartmentId = new Guid((string)o["DepartmentId"]);
      department.Name = new string(((string) o["Name"]).Reverse().ToArray());

      return department;
    }
コード例 #2
0
 partial void DeleteDepartment(Department instance);
コード例 #3
0
 partial void UpdateDepartment(Department instance);
コード例 #4
0
 partial void InsertDepartment(Department instance);