Exemple #1
0
        public TraceableEntityDescriptor(Colosoft.Query.Record record, string idFieldName, string nameFieldName, string descriptionFieldName = null)
        {
            record.Require("record").NotNull();
            idFieldName.Require("idFieldName").NotNull();
            nameFieldName.Require("nameFieldName").NotNull();
            var idFieldIndex          = record.Descriptor.GetFieldPosition(idFieldName);
            var nameFieldIndex        = record.Descriptor.GetFieldPosition(nameFieldName);
            var descriptionFieldIndex = record.Descriptor.GetFieldPosition(descriptionFieldName);

            Initialize(record, idFieldIndex, nameFieldIndex, descriptionFieldIndex);
        }
Exemple #2
0
 public TraceableEntityDescriptor(Colosoft.Query.Record record, int idFieldIndex, int nameFieldIndex, int descriptionFieldIndex = -1)
 {
     record.Require("record").NotNull();
     Initialize(record, idFieldIndex, nameFieldIndex, descriptionFieldIndex);
 }