Skip to content

Instantly share code, notes, and snippets.

@jods4
jods4 / EFInverseProperty.cs
Created October 18, 2020 15:30
Finds the inverse Property of an EF 6 NavigationProperty.
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.Core.Metadata.Edm;
using System.Data.Entity.Infrastructure;
using System.Reflection;
class Program
{
static PropertyInfo GetInverseProperty(DbContext context, Type parentType, string parentProperty)
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 4.
"time","Current Blocked Async I/O Requests","Current blocked bandwidth bytes","Total Threads","Requests / Sec","Active Requests","% Processor Time","% Disk Time","Network Adapter(Microsoft Kernel Debug Network Adapter) Bytes Received/sec","Network Adapter(isatap.{D4682BE7-A246-49BE-BECB-C81121E2B7C9}) Bytes Received/sec","Network Adapter(vmxnet3 Ethernet Adapter) Bytes Received/sec","Network Adapter(Microsoft Kernel Debug Network Adapter) Bytes Sent/sec","Network Adapter(isatap.{D4682BE7-A246-49BE-BECB-C81121E2B7C9}) Bytes Sent/sec","Network Adapter(vmxnet3 Ethernet Adapter) Bytes Sent/sec","Memory Available MBytes","HTTP Service Request Queues(RFNet) RejectedRequests","HTTP Service Request Queues(RFNet) CurrentQueueSize"
"08/14/2020 14:09:11.990","0","0","4"," ","0"," "," "," "," "," "," "," "," ","2292","0","0"
"08/14/2020 14:09:21.997","0","0","4","0","0","4.2919503875850644","0.076562442746913872","0","0","2687.2704571232616","0","0","6206.9388363908583","2292","0","0"
"08/14/2020 14:09:32.013","0","0","4
@jods4
jods4 / data.json
Last active September 28, 2018 00:07
[{
"name": "A",
"class": "man",
"marriages": [{
"spouse": {
"name": "X",
"class": "woman"
},
"children": [{
"name": "D",