示例#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;
        }