Asp.net + MSSQL React Native ile geliştirilen mobil uygulama'nın veri tabanı ile bağlantısını sağlayabilmek amacıyla geliştirilmiştir. Asp.net Web Api teknolojisi kullanılmıştır. Model kullanımı; public int book_id { get; set; } public Nullable user_id { get; set; } public string book_choise { get; set; } public string book_name { get; set; } public string writer_name { get; set; } Controller kullanımı; public IEnumerable Get() { IEnumerable model; using (MadalyonContext dbContext = new MadalyonContext()) { List<Book_Table> deneme = dbContext.Book_Table.ToList(); List aktar = new List(); foreach (Book_Table item in deneme) { Book t = new Book(); t.book_id = item.book_id; t.user_id = item.user_id; t.book_choise = item.book_choise; t.book_name = item.book_name; t.writer_name = item.writer_name; aktar.Add(t); } model = aktar; } return model; }
merveguzl/apiTry
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Asp.net + MSSQL
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published