Skip to content

Instantly share code, notes, and snippets.

@FrankDupree
FrankDupree / gist:382fce6bba40b87e5be95256569f10dd
Created June 13, 2019 16:11
EntityFramework foreign key conflicts
public class Status : Entity, IAggregateRoot
{
public string IdentityGuid { get; private set; }
public string Content { get; set; }
public string UserId { get; set; }
public int NetLikeCount { get; set; }
public readonly List<StatusLike> _statusLikes;
public IReadOnlyCollection<StatusLike> StatusLikes => _statusLikes;
public readonly List<Photo> _photos;
public IReadOnlyCollection<Photo> Photos => _photos;
@FrankDupree
FrankDupree / comment-data.json
Created March 29, 2018 08:07
Dummy data for the koment-blog system
{"_id":"5abb5a9a6c36b333b4122db1","created_date":"2018-03-28T09:04:26.249Z","parent_comment_id":null,"comment":"Wow, awesome post!","user_id":"5aba4bbd68766f4fb4c55e22","__v":0}
{"_id":"5abb654e57241d396caf676a","created_date":"2018-03-28T09:50:06.899Z","parent_comment_id":null,"comment":"I am very pleased with this post.","user_id":"5aba4bbd68766f4fb4c55e22","__v":0}
{"_id":"5abb657a57241d396caf676b","created_date":"2018-03-28T09:50:50.553Z","parent_comment_id":null,"comment":"Awesome post. learnt alot!","user_id":"5aba4caf68766f4fb4c55e25","__v":0}
{"_id":{"$oid":"5abba64099e5c03e9c5d2490"},"parent_comment_id":null,"comment":"hey! could you create an article on S.O.L.I.D principles","user_id":{"$oid":"5aba4d6c68766f4fb4c55e28"},"created_date":{"$date":"2018-03-28T14:27:12.911Z"},"__v":0}
@FrankDupree
FrankDupree / comment-data.json
Created March 29, 2018 08:04
Dummy data comments for the koment-blog system
{"_id":"5abb5a9a6c36b333b4122db1","created_date":"2018-03-28T09:04:26.249Z","parent_comment_id":null,"comment":"Wow, awesome post!","user_id":"5aba4bbd68766f4fb4c55e22","__v":0}
{"_id":"5abb654e57241d396caf676a","created_date":"2018-03-28T09:50:06.899Z","parent_comment_id":null,"comment":"I am very pleased with this post.","user_id":"5aba4bbd68766f4fb4c55e22","__v":0}
{"_id":"5abb657a57241d396caf676b","created_date":"2018-03-28T09:50:50.553Z","parent_comment_id":null,"comment":"Awesome post. learnt alot!","user_id":"5aba4caf68766f4fb4c55e25","__v":0}
{"_id":{"$oid":"5abba64099e5c03e9c5d2490"},"parent_comment_id":null,"comment":"hey! could you create an article on S.O.L.I.D principles","user_id":{"$oid":"5aba4d6c68766f4fb4c55e28"},"created_date":{"$date":"2018-03-28T14:27:12.911Z"},"__v":0}
package com.codeniro.algorithms;
/**
*
* @author Frank Akogun
*/
public class Algo {
private final int[] arrayList = new int[20];
private final int arraySize = 10;