Exemple #1
0
 protected Oid(string className, string alias, string idXML, IList <IOidField> fields)
     : this(className, alias, idXML, null as FieldList)
 {
     if (fields != null)
     {
         foreach (IOidField lfield in fields)
         {
             FieldList.Add(lfield);
         }
     }
 }
Exemple #2
0
 /// <summary>
 /// Create Fields for OID.
 /// </summary>
 /// <param name="types">Oid types.</param>
 protected virtual void CreateTypes(ModelType[] types)
 {
     // Set Types
     if (types != null)
     {
         // Clear fields for this OID.
         FieldList.Clear();
         // Add New OID Types and fields for OID.
         foreach (ModelType ltype in types)
         {
             IOidField lfield = FieldList.Add(string.Empty, ltype);
         }
     }
 }