Пример #1
0
        public DbField(string name, ID id)
        {
            var idNamePair = new FieldNamingHelper().GetFieldIdNamePair(id, name);

            this.ID   = idNamePair.Key;
            this.Name = idNamePair.Value;

            if (this.Name.StartsWith("__"))
            {
                this.Shared = true;
            }
        }
Пример #2
0
    public DbField(string name, ID id)
    {
      var idNamePair = new FieldNamingHelper().GetFieldIdNamePair(id, name);
      this.ID = idNamePair.Key;
      this.Name = idNamePair.Value;

      if (!this.IsStandard())
      {
        return;
      }

      // TODO: Determine which of the standard fields should be shared.
      if (this.ID != FieldIDs.DisplayName)
      {
        this.Shared = true;
      }
    }
Пример #3
0
        public DbField(string name, ID id)
        {
            var idNamePair = new FieldNamingHelper().GetFieldIdNamePair(id, name);

            this.ID   = idNamePair.Key;
            this.Name = idNamePair.Value;

            if (!this.IsStandard())
            {
                return;
            }

            // TODO: Determine which of the standard fields should be shared.
            if (this.ID != FieldIDs.DisplayName)
            {
                this.Shared = true;
            }
        }