Yes, ContentType has a FieldRef for all fields (well, not inherited). However, I read that when defining types of contexts in schema.xml you must explicitly define Field` as well (this is strange), however if you add ContentType programmatically, then it correctly adds CType fields to the definition .
By the way, you see that VSeWSS (Microsoft extension for VS) is generated (all links).
Absolutely from the SharePoint blog :
What you need to do is add the exact elements as in the content type, including the same identifier. This is a little strange, but in fact you need to define the fields twice, both in the content type and in schema.xml to make this work. You can skip Group and several other properties.
However, if I do not use the fields, I will get an exception:
[COMException (0x80004005): Nevar pabeigt šo darbību. Lūdzu, mēģiniet vēlreiz.] Microsoft.SharePoint.Library.SPRequestInternalClass.GetViewsSchemaXml(String bstrUrl, String bstrListName, Boolean bFullBlown, ISP2DSafeArrayWriter p2DWriter, Int32& plDefaultViewIndex) +0 Microsoft.SharePoint.Library.SPRequest.GetViewsSchemaXml(String bstrUrl, String bstrListName, Boolean bFullBlown, ISP2DSafeArrayWriter p2DWriter, Int32& plDefaultViewIndex) +122
Oh, well, in any case, I read an article (I can’t find this article no more), proposing to add a content type with function receivers, after which it correctly displays fields in forms.