changed ENum to long
This commit is contained in:
parent
1ddbf6511f
commit
3e369eff83
2 changed files with 9 additions and 9 deletions
|
@ -13,10 +13,10 @@ namespace BuecherwurmAPI.Models
|
||||||
public long Year {get; set;}
|
public long Year {get; set;}
|
||||||
[Key, Required]
|
[Key, Required]
|
||||||
public long ProductId { get; set; }
|
public long ProductId { get; set; }
|
||||||
public CategoryEnum Category { get; set; }
|
public long Category { get; set; }
|
||||||
public string ImageLink { get; set; }
|
public string ImageLink { get; set; }
|
||||||
public long LendTime {get; set;}
|
public long LendTime {get; set;}
|
||||||
public LendTypeEnum LendType {get; set;}
|
public long LendType {get; set;}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class BookPost
|
public class BookPost
|
||||||
|
@ -28,10 +28,10 @@ namespace BuecherwurmAPI.Models
|
||||||
public string Language {get; set;}
|
public string Language {get; set;}
|
||||||
public long Pages {get; set;}
|
public long Pages {get; set;}
|
||||||
public long Year {get; set;}
|
public long Year {get; set;}
|
||||||
public CategoryEnum Category { get; set; }
|
public long Category { get; set; }
|
||||||
public string ImageLink { get; set; }
|
public string ImageLink { get; set; }
|
||||||
public long LendTime {get; set;}
|
public long LendTime {get; set;}
|
||||||
public LendTypeEnum LendType {get; set;}
|
public long LendType {get; set;}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -34,7 +34,7 @@ namespace BuecherwurmAPI.Models
|
||||||
{
|
{
|
||||||
books.Add(new Book
|
books.Add(new Book
|
||||||
{
|
{
|
||||||
Name = (string) dataReader["Books"],
|
Name = (string) dataReader["Name"],
|
||||||
Author = (string) dataReader["Author"],
|
Author = (string) dataReader["Author"],
|
||||||
Country = (string) dataReader["Country"],
|
Country = (string) dataReader["Country"],
|
||||||
Link = (string) dataReader["Link"],
|
Link = (string) dataReader["Link"],
|
||||||
|
@ -42,10 +42,10 @@ namespace BuecherwurmAPI.Models
|
||||||
Pages = (long) dataReader["Pages"],
|
Pages = (long) dataReader["Pages"],
|
||||||
Year = (long) dataReader["Year"],
|
Year = (long) dataReader["Year"],
|
||||||
ProductId = (long) dataReader["ProductId"],
|
ProductId = (long) dataReader["ProductId"],
|
||||||
Category = (CategoryEnum) dataReader["Category"],
|
Category = (long) dataReader["Category"],
|
||||||
ImageLink = (string) dataReader["ImageLink"],
|
ImageLink = (string) dataReader["ImageLink"],
|
||||||
LendTime = (long) dataReader["LendTime"],
|
LendTime = (long) dataReader["LendTime"],
|
||||||
LendType = (LendTypeEnum) dataReader["LendType"]
|
LendType = (long) dataReader["LendType"]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -70,10 +70,10 @@ namespace BuecherwurmAPI.Models
|
||||||
Pages = (long) dataReader["Pages"],
|
Pages = (long) dataReader["Pages"],
|
||||||
Year = (long) dataReader["Year"],
|
Year = (long) dataReader["Year"],
|
||||||
ProductId = (long) dataReader["ProductId"],
|
ProductId = (long) dataReader["ProductId"],
|
||||||
Category = (CategoryEnum) dataReader["Category"],
|
Category = (long) dataReader["Category"],
|
||||||
ImageLink = (string) dataReader["ImageLink"],
|
ImageLink = (string) dataReader["ImageLink"],
|
||||||
LendTime = (long) dataReader["LendTime"],
|
LendTime = (long) dataReader["LendTime"],
|
||||||
LendType = (LendTypeEnum) dataReader["LendType"]
|
LendType = (long) dataReader["LendType"]
|
||||||
};
|
};
|
||||||
return book;
|
return book;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue