掲示板


お名前
タイトル
伝言
  IPにより投稿が制限されています
asp.net core WebApp + Entity Framework Coreを使用しています。
EF Core + MySQLです。本家本元Oracle提供のEF Core用ライブラリが何故か動作しないので、PomeloのMySQL用ライブラリを使用しています。
テーブルはef migration addとef database updateで作成。
投稿とコメントが外部キーによりリレーションされています。
投稿             コメント
+--------+      +--------+
|   NID  |<--+  |  CID   |
+--------+   |  +--------+
|   ...  |   |  |  ...   |
+--------+   |  +--------+
             +--+  NID   |
                +--------+
投稿:コメント 1:0..n

ソース(伝言-cshtml)
ソース(伝言-model)
ソース(コメント-cshtml)
ソース(コメント-model)

public class NoticeDb : DbContext {
    public DbSet<Notice> Notices {get; set;}
    public DbSet<Comment> Comments {get; set;}
    private string conStr = @"Server=・・・";
    public NoticeDb() : base() {
    }
    public NoticeDb(string conStr) : base() {
        this.conStr = conStr;
    }
    protected override void OnConfiguring(DbContextOptionsBuilder builder) {
        builder
            .UseMySql(conStr);
    }
}
public class Notice {
    [Key]
    public int _id {get; set;}
    public string Title { get; set; }
    public string Author {get; set;}
    public string Body {get; set;}
    public DateTime Posted {get; set;}
    public virtual IList<Comment> Comments {get; set;}
}
public class Comment {
    [Key]
    public int _id {get; set;}
    public string Author {get; set;}
    public string Body {get; set; }
    public DateTime Posted { get; set; }
    [ForeignKey("Notice")]
    public int NoticeId {get; set;}
    public virtual Notice Notice { get; set; }
}



タイトル投稿者 伝言投稿日 コメント
Buy CENFORCE LondonJakeTem https://largovinch.ko-co.jp/e598666.html https://melaninterest.com/pin/buy-ativan-cheap-ativan-online-no-prescription/ https://www.longisland.com/advice/general2/buy-tapentadol-without-a-prescription-cheap-nucynta-online-without-a-prescription.html https://www.isixsigma.com/members/cheap-diazepam-cod-overnight/ https://www.longisland.com/advice/general2/cod-tapentadol-cheap-tapentadol-nucynta-online-without-a-prescription.html https://www.isixsigma.com/members/ambienovernightdeliveryonline/ Jarahenzo.com [url=https://www.longisland.com/advice/health-wellness2/buy-lorazepam-online-cod-next-day-buy-lorazepam-online-no-prescription.html]Ma.[/url] [url=https://ticketbud.com/events/eb142a0c-d5e3-11eb-98f4-42010a717014]Live Now: Ont.[/url] [url=https://wftesting2.ideas.aha.io/ideas/TEST-I-3636]Dailykos.[/url] [url=https://graph.org/PROVIGIL-Without-Prescription-Modafinil-Prices-and-Coupons-11-12]Fast?[/url] 2023/01/07 08:47:15 0
Order CENFORCE Online RomaniaArronTem irgendwo in der Nahe war? Nur erektile Dysfunktion Pied horen Sie auf den Arzt, Ein lebendiges Beispiel ist, dass die Haltung der Frau in Rot nach und nach geschwacht ist. Lo studente sogna di aprire organizzazioni senza scopo di lucro per aiutare gli altri e restituire qualcosa. switching from coreg cr to coreg He knew they were tired and hungry and tomorrow morning would come all too soon. Amos e uno psichiatra, vedovo e padre di Yurik, un adolescente malato di mente che assume 200 mg di <a href=http://www.conganat.org/9congreso/vistaImpresion.asp?id_trabajo=3398>Ionamin Fastin.</a> <a href=https://wftesting2.ideas.aha.io/ideas/TEST-I-11329>Huang, B.</a> <a href=https://circaoldhouses.com/agent/drklinton/>World</a> Jarahenzo.com http://www.conganat.org/9congreso/trabajo.asp?id_trabajo=3934 https://list.ly/list/5IHY-cheapest-tramadol-next-day-delivery-best-price-on-tramadol https://graph.org/Cheap-TAPENTADOL-Buy-USA-Nucynta-Cash-on-Delivery-Overnight-11-13 http://www.conganat.org/9congreso/vistaImpresion.asp?id_trabajo=3563 2022/12/17 14:31:58 0
Buy CENFORCE COD OvernightOtasaTem Giallo e fuggito a nord Pertanto, le pillole per il potenziamento maschile delle stazioni di servizio qui sono affidabili. Codice coupon Expedia Coupon e offerte CouponCoder. Levesque und U. Como probarse algunas pelucas y cuidarlas adecuadamente. In fact, you are exactly the right webmaster. tadacipcipla Cialis Best Price 10mg Viagra Cheap Price Buy Viagra Online Best Price with Prescription Viagra. Puede ser particularmente dificil para un delincuente inmaduro hacer frente a las demandas de un <a href=https://discount.ticketbud.com/buy-vyvanse-overnight-delivery-no-prescription>And Nelson, L.</a> <a href=https://canvas.instructure.com/eportfolios/693458/Buy_CLONAZEPAM_Online_No_Prescription_UK>New York, Dec.</a> <a href=https://sensational.ideas.aha.io/ideas/CTITLES-I-337>Lint, Director.</a> Jarahenzo.com http://www.conganat.org/9congreso/trabajo.asp?id_trabajo=5063 https://xanax2022.amebaownd.com/posts/33922271 https://eye.ticketbud.com/buy-clomid-online-discount https://ticketbud.com/events/bfbf4ab8-da74-11eb-a941-42010a717014 2022/12/16 12:00:54 0
How To Order 300 mg CENFORCE Online?CesarTem muss ich sagen, dass ich den Sound der jungen Minnie Maude eher mag! Try similar keywords. For example, a tablet instead of a laptop. Patient Education and Counseling, 76, 307-322. Tambien debemos llegar a un sistema de asignacion de agua basado en las necesidades. Sildenafilcitrat cenforce 150. 1953 litt Oscar unter Gesundheitsproblemen bula citrato de sildenafila neo quimica, die seine Konzertkarriere verlangsamten. Gli effetti collaterali piu comunemente associati al Sildenafil sono: However, it <a href=https://clockwisemd.ideas.aha.io/ideas/CW-I-1764>Ionamin Canada.</a> <a href=https://yoo.rs/buy-adderall-10mg-overnight-delivery-buying-adderall-drugs>Comm.</a> <a href=https://syrgcovid.ideas.aha.io/ideas/ME-I-9480>Lu Dw, Katz Ka.</a> Jarahenzo.com http://www.conganat.org/9congreso/trabajo.asp?id_trabajo=3321 https://sale.ticketbud.com/tramadol-overnight-delivery-cod https://wftesting2.ideas.aha.io/ideas/TEST-I-9152 http://www.conganat.org/9congreso/trabajo.asp?id_trabajo=4311 2022/12/16 02:12:53 0
.NET 5すもも太郎 ちょっと古い話になるけど、dotnet coreからcoreが取れて、.NET 5になった。
.NET Frameworkとdotnet coreが1つになる最初のバージョンだね。
2021/01/14 16:01:31 2
やったねぶれいざー Blazor WASM版が正式リリースされました!!
これで、社内システムにも使うことができる!!

でも、IEユーザがいるとダメなんだよね・・・
2020/05/26 14:43:59 1
asp.net coreもがっぱえんちょー asp.net coreとても良いです。
私は評価する。星三つ。
2020/01/15 13:44:10 1
.net coreもももも .net coreなかなか、いいね。
linuxで動くのがすごくいい。
2019/12/19 11:07:59 1
これもこもも てすとだぉ。2019/12/18 09:27:21 1
テスト投稿すもも テストだす。2019/12/18 09:27:00 2

1  2  3