Exemplo n.º 1
0
 private DbRelation GetDbRelation(MySqlDataReader reader)
 {
     return new DbRelation
     {
         Id = reader.GetInt32("id"),
         FromId = reader.GetNullableInt("from_id"),
         Identifier = reader.GetString("identifier"),
         ToId = reader.GetNullableInt("to_id"),
         RelationType = reader.GetIntEnum<DbRelationType>("relation_type"),
         SortNum = reader.GetNullableInt("sort_num")
     };
 }