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;
            }
        }