Exemplo n.º 1
0
        public GeneralEntityDataset asGeneralEntity(KindName name)
        {
            return(new GeneralEntityDataset()
            {
                Id = this.Id,
                EntityId = this.EntityId,

                KindMetaData = this.KindMetaData,

                FormName = name.Value,
                FieldValues = new List <NameValuePair>()
                {
                    new NameValuePair()
                    {
                        Name = Constants.FIELD_ID, Value = this.Id.Value
                    },
                    new NameValuePair()
                    {
                        Name = Constants.FIELD_ENTITYID, Value = this.EntityId.Value
                    },

                    new NameValuePair()
                    {
                        Name = Constants.SYS_FIELD_USERID, Value = this.UserId
                    },
                    new NameValuePair()
                    {
                        Name = Constants.SYS_FIELD_USERNAMES, Value = this.Names
                    },
                    new NameValuePair()
                    {
                        Name = Constants.SYS_FIELD_PASSWDHASH, Value = this.KnownBolg
                    },
                }
            });
        }
Exemplo n.º 2
0
 public bool Matches(KindName kindName)
 {
     return(Matches(kindName.Value));
 }