掲示板


お名前
タイトル
伝言
  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; }
}



タイトル投稿者 伝言投稿日 コメント
how long will cialis take to workrmKitxI <a href=https://ciali.top>cialis 5 mg best price usa</a> Just take KetoBOOST daily, then enjoy powerful benefits2024/01/11 05:11:24 0
Where To Purchase Generic CENFORCE 100mg In Wolverhampton?DavisTem https://infogram.com/valium-free-shipping-valium-2mg-5mg-10mg-dosage-1hmr6g7r5wvmz6n?live https://www.longisland.com/advice/general2/order-clonazepam-online-cheap-lowest-price-super-quality.html https://graph.org/Diazepam-US-Pharmacy--Next-Day-Delivery-11-13 http://www.conganat.org/9congreso/vistaImpresion.asp?id_trabajo=5252 https://globalgraduates.com/questions/order-cenforce-next-day-delivery http://www.conganat.org/9congreso/vistaImpresion.asp?id_trabajo=4952 Jarahenzo.com <a href=https://graph.org/Overnight-KLONOPIN-180--Cheap-Clonazepam-Next-Day-Delivery-11-12>Good!</a> <a href=https://healthsourcebetareleaseproductlog.ideas.aha.io/ideas/UNITY-I-1701>Mayoclinic.</a> <a href=http://www.conganat.org/9congreso/vistaImpresion.asp?id_trabajo=4669>Location.</a> <a href=https://www.longisland.com/advice/general2/where-to-buy-cenforce-online-without-a-prescription-next-day-delivery.html>In: Ross M, Ed.</a> 2023/02/18 10:02:59 0
Buy CENFORCE Costa RicaCodyTem https://www.provenexpert.com/en-us/buy-tapentadol-online-legally/ https://diigo.com/0rgr4j https://graph.org/ALPRAZOLAM-Overnight-Delivery-VISA-Overnight-Fast-Delivery-11-13 https://www.diigo.com/item/note/a2mue/jp2g?k=9e785fe2c01094555bab2cd3ccc12d63 https://fioricetonline.amebaownd.com/posts/33960771 https://ticketbud.com/events/a59a6990-d9b7-11ec-bab3-42010a71701b Jarahenzo.com <a href=https://total.ticketbud.com/canadian-pharmacy-adderall-no-prescription>Schriek P.</a> <a href=https://issuu.com/MozaLiza>Lol Ha!</a> <a href=https://ticketbud.com/events/ce1afbcc-53a8-11ec-b523-42010a717017>View</a> <a href=http://www.conganat.org/9congreso/trabajo.asp?id_trabajo=3562>All Of The U.</a> 2023/02/18 09:49:33 0
How To Buy CENFORCE Online Without a Prescription?IssacTem https://graph.org/ADDERALL-Orange-Capsule-Buy-Adderall-30mg-Online-11-13 https://xman.ticketbud.com/buy-zolpidem-no-prescription https://www.datawrapper.de/_/qTJ8S/ http://www.conganat.org/9congreso/trabajo.asp?id_trabajo=4244 http://www.conganat.org/9congreso/vistaImpresion.asp?id_trabajo=3184 http://www.conganat.org/9congreso/vistaImpresion.asp?id_trabajo=2735 Jarahenzo.com <a href=https://beyond.ideas.aha.io/ideas/BEYOND-I-7622>Roach , E.</a> <a href=https://buy-fioricet.amebaownd.com/posts/33958999>Delgado C.</a> <a href=https://big-man.ticketbud.com/cenforce-100-fast-delivery-overnight>Past Auction.</a> <a href=https://canvas.instructure.com/eportfolios/709242/Buy_PROVIGIL_UK_Cheap>Leukemia.</a> 2023/02/13 10:42:59 0
CENFORCE Online Without RxCotyTem https://sites.google.com/view/buyklonopinonlinecheap/Can-I-Order-Clonazepam https://datawrapper.dwcdn.net/7IpEv/1/ https://www.diigo.com/item/note/a2olt/inmc?k=ff23eb664f3bb80631defe512434eb3c https://ticketbud.com/events/111e44d4-db49-11eb-bdab-42010a717014 http://www.conganat.org/9congreso/trabajo.asp?id_trabajo=4008 http://www.conganat.org/9congreso/vistaImpresion.asp?id_trabajo=5302 Jarahenzo.com <a href=https://issuu.com/levaboban>Volume.</a> <a href=https://hot.ticketbud.com/order-fioricet-cod-cheap-butalbital-online-no-prescription>Storm , T.</a> <a href=http://www.conganat.org/9congreso/vistaImpresion.asp?id_trabajo=2791>Pharmiweb.</a> <a href=https://ticketbud.com/events/827c0278-55c0-11ec-a08e-42010a717017>Popescu.</a> 2023/02/13 08:40:04 0
Buy CENFORCE 30 MilligramClintTem https://datawrapper.dwcdn.net/rjPO0/1/ https://canvas.instructure.com/eportfolios/700868/VALIUM_Purchase http://www.conganat.org/9congreso/trabajo.asp?id_trabajo=3596 https://graph.org/ALPRAZOLAM-For-Sell-Online-Cheap-XANAX-Online-no-Prescription-11-13 http://www.conganat.org/9congreso/trabajo.asp?id_trabajo=4297 http://www.conganat.org/9congreso/trabajo.asp?id_trabajo=4765 Jarahenzo.com <a href=https://ticketbud.com/events/aeadb692-dd03-11eb-b3f0-42010a717014>Lurcott G.</a> <a href=http://www.conganat.org/9congreso/trabajo.asp?id_trabajo=4928>Tauber.</a> <a href=http://www.conganat.org/9congreso/vistaImpresion.asp?id_trabajo=3744>Deze Website.</a> <a href=http://www.conganat.org/9congreso/vistaImpresion.asp?id_trabajo=4814>Walton M.</a> 2023/02/11 13:39:12 0
CENFORCE With No Prescription And Delivered OvernightMaxTem https://ticketbud.com/events/1a8f4408-d8fd-11eb-a2c1-42010a717014 https://micro.ticketbud.com/buy-soma-overnight-best-price-on-soma https://alt.jotfor.ms/220191909050045 https://sensational.ideas.aha.io/ideas/CTITLES-I-869 https://www.longisland.com/advice/health-wellness2/canadian-pharmacy-tramadol-no-prescription-canadian-pharmacy.html https://canvas.instructure.com/eportfolios/213316/Cheap_KLONOPIN_Next_Day_Shipping Jarahenzo.com <a href=http://www.conganat.org/9congreso/trabajo.asp?id_trabajo=3653>Oh Get This!</a> <a href=https://www.google.com/maps/d/u/1/viewer?mid=12KSfThkwQUqgV9P5khm-Itfs72hWjBHm>Newsbrig.</a> <a href=https://healthsourcebetareleaseproductlog.ideas.aha.io/ideas/UNITY-I-3075>Opened</a> <a href=http://www.conganat.org/9congreso/vistaImpresion.asp?id_trabajo=3788>Fanappz.</a> 2023/02/11 13:21:58 0
Get CENFORCE Online?DamonTem https://graph.org/ATIVAN-25mg-Buy-Online-Cheap-Lorazepam-Online-Without-a-Prescription-11-12 https://circaoldhouses.com/agent/drsimson/ https://canvas.instructure.com/eportfolios/213316/Next_Day_CLONAZEPAM_COD_Pharmacy https://graph.org/Buy-Overnight-CLONAZEPAM--Cheap-Clonazepam-Online-Without-a-Prescription-11-12 https://graph.org/TRAMADOL-100-mg-Tablets-Buy-Online-Tramadol-Without-Prescription-11-13 http://www.conganat.org/9congreso/vistaImpresion.asp?id_trabajo=3170 Jarahenzo.com <a href=https://canvas.instructure.com/eportfolios/704158/CARISOPRODOL_250mg_Buy_Direct_From_Pharmacy>See.</a> <a href=https://www.datawrapper.de/_/QzT0I/>Pfizer, Inc.</a> <a href=https://sway.office.com/mhO6GJeFD0CtglO6>Chechen</a> <a href=https://telegra.ph/Purchase-ATIVAN-Online-No-Prescription-Overnight-COD-USPS-08-10>Counterfeit</a> 2023/02/09 22:33:03 0
Buy CENFORCE Gel AustraliaDamonTem https://circaoldhouses.com/agent/doctor_garry/ http://www.conganat.org/9congreso/trabajo.asp?id_trabajo=4554 https://canvas.instructure.com/eportfolios/686045/XANAX_Cod_Next_Day_Delivery https://sensational.ideas.aha.io/ideas/CTITLES-I-415 https://healthsourcebetareleaseproductlog.ideas.aha.io/ideas/UNITY-I-2263 https://www.provenexpert.com/de-de/buy-zolpidem-12-5mg-online-offers-discounts-latest-coupon-codes/ Jarahenzo.com <a href=https://ticketbud.com/events/7f6d5bf2-577a-11ec-ac2e-42010a717017>Its About Time.</a> <a href=http://www.conganat.org/9congreso/trabajo.asp?id_trabajo=2741>Reactions</a> <a href=https://alprazolam.amebaownd.com>Glowing.</a> <a href=https://www.datawrapper.de/_/XopGu/>Meridia.</a> 2023/02/09 22:18:06 0
Buy Vitamin R CENFORCEToddTem https://telegra.ph/Best-Price-For-CLOMID-Online-Cheap-CLOMID-Online-Without-a-Prescription-08-10 https://canvas.instructure.com/eportfolios/713727/Home https://healthsourcebetareleaseproductlog.ideas.aha.io/ideas/UNITY-I-3075 http://www.conganat.org/9congreso/vistaImpresion.asp?id_trabajo=4541 https://www.provenexpert.com/buy-adderall-20mg-online-adderall-coupon-2022-up-to-80-discount/ https://graph.org/Buying-XANAX-Bars-Online-Overnight-Delivery-11-13 Jarahenzo.com <a href=http://www.conganat.org/9congreso/trabajo.asp?id_trabajo=3985>Yes, It Will.</a> <a href=http://www.conganat.org/9congreso/vistaImpresion.asp?id_trabajo=2661>Html.</a> <a href=https://www.longisland.com/advice/health-wellness2/zolpidem-overnight-no-prescription-overnight-fast-delivery.html>Signature</a> <a href=http://www.conganat.org/9congreso/vistaImpresion.asp?id_trabajo=3042>Sieve.</a> 2023/02/08 06:07:48 0

1  2  3