Last active
February 24, 2018 18:32
-
-
Save sometowngeek/ca8c2ee37d458fd4b6cbbfeda6a3ab43 to your computer and use it in GitHub Desktop.
CRUD for someone on SO
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace StackOverflow.Playground | |
{ | |
public class AttendanceList | |
{ | |
public Guid CommunityEventAttendanceListId { get; set; } | |
public Guid CommunityEventId { get; set; } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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