private static void ImplementProjectionProperties(TypeBuilder typeBuilder, ProjectionPropertyInfo[] properties) { foreach (var item in properties) ImplementProjectionProperty(typeBuilder, item.Property, item.FieldName); }
private static void InitializeProjectionProperties(Type type, ProjectionPropertyInfo[] properties) { foreach (var item in properties) SetStaticField(type, item.FieldName, item.Property); }
private static ProjectionPropertyInfo[] CollectProjectionProperties(ProjectionPropertyCollection properties) { var infos = new ProjectionPropertyInfo[properties.Count]; var index = 0; foreach (var property in properties) { infos[index++] = new ProjectionPropertyInfo { Property = property, FieldName = GetPropertyFieldName(property, index) }; } return infos; }