コード例 #1
0
 private static void ImplementProjectionProperties(TypeBuilder typeBuilder, ProjectionPropertyInfo[] properties)
 {
     foreach (var item in properties)
         ImplementProjectionProperty(typeBuilder, item.Property, item.FieldName);
 }
コード例 #2
0
 private static void InitializeProjectionProperties(Type type, ProjectionPropertyInfo[] properties)
 {
     foreach (var item in properties)
         SetStaticField(type, item.FieldName, item.Property);
 }
コード例 #3
0
        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;
        }