Skip to content

Instantly share code, notes, and snippets.

@sometowngeek
Last active February 24, 2018 18:32
Show Gist options
  • Save sometowngeek/ca8c2ee37d458fd4b6cbbfeda6a3ab43 to your computer and use it in GitHub Desktop.
Save sometowngeek/ca8c2ee37d458fd4b6cbbfeda6a3ab43 to your computer and use it in GitHub Desktop.
CRUD for someone on SO
using System;
namespace StackOverflow.Playground
{
public class AttendanceList
{
public Guid CommunityEventAttendanceListId { get; set; }
public Guid CommunityEventId { get; set; }
}
}
using System;
namespace StackOverflow.Playground
{
public class Class1
{
private static Guid commid = new Guid("{bab1bc48-fb46-e711-ae80-28f10e144387}");
public static void Main(String[] args)
{
AttendanceList entity = new AttendanceList
{
CommunityEventAttendanceListId = Guid.NewGuid(),
CommunityEventId = (Guid)(commid)
};
Console.WriteLine("commid: " + commid.ToString());
Console.WriteLine(String.Format("{0}, {1}", entity.CommunityEventAttendanceListId, entity.CommunityEventId));
// This is just so I can place a breakpoint on here to see what's printed out.
var result = entity;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment