func (c *User) Value(identifier string) interface{} {
    if util.Contains( c.Location.IdentifierList(), identifier ) {
        return c.Location.Field( identifier )
    }
    var result interface{}
	switch identifier {
    case "email":
            result = &(c.Email)
    case "firstname":
            result = &(c.Firstname)
    case "lastname":
            result = &(c.Lastname)
    case "login":
            result = &(c.Login)
    case "password":
            result = &(c.Password)
	case "cid":
		result = c.ContentCommon.CID
    default:
    	result = c.ContentCommon.Value( identifier )
    }
	return result
}
Get field value
package entity
import (
    "context"
    "database/sql"
    "github.com/digimakergo/digimaker/core/db"
    "github.com/digimakergo/digimaker/core/definition"
    "github.com/digimakergo/digimaker/core/contenttype"
	  "github.com/digimakergo/digimaker/core/fieldtype"
    "github.com/digimakergo/digimaker/core/util"
	. "github.com/digimakergo/digimaker/core/db"
)
type User struct{
     contenttype.ContentCommon `boil:",bind"`
            Email  fieldtype.Text `boil:"email" json:"email" toml:"email" yaml:"email"`
            Firstname  fieldtype.Text `boil:"firstname" json:"firstname" toml:"firstname" yaml:"firstname"`
            Lastname  fieldtype.Text `boil:"lastname" json:"lastname" toml:"lastname" yaml:"lastname"`
            Login  fieldtype.Text `boil:"login" json:"login" toml:"login" yaml:"login"`
            Password  fieldtype.Password `boil:"password" json:"-" toml:"password" yaml:"password"`
     contenttype.Location `boil:"location,bind"`
}
func (c *User ) TableName() string{
	 return "dm_user"
}
func (c *User ) ContentType() string{
	 return "user"
}
func (c *User ) GetName() string{
	 location := c.GetLocation()
     if location != nil{
         return location.Name
     }else{
         return ""
     }
}
func (c *User) GetLocation() *contenttype.Location{
    return &c.Location
}
func (c *User) ToMap() map[string]interface{}{
    result := map[string]interface{}{}
    for _, identifier := range c.IdentifierList(){
      result[identifier] = c.Value(identifier)
    }
    return result
}
func (c *User) ToDBValues() map[string]interface{} {
	result := make(map[string]interface{})
            result["email"]=c.Email
            result["firstname"]=c.Firstname
            result["lastname"]=c.Lastname
            result["login"]=c.Login
            result["password"]=c.Password
	for key, value := range c.ContentCommon.ToDBValues() {
		result[key] = value
	}
	return result
}
func (c *User) IdentifierList() []string {
	return append(c.ContentCommon.IdentifierList(),[]string{ "email","firstname","lastname","login","password",}...)
}
func (c *User) Definition(language ...string) definition.ContentType {
	def, _ := definition.GetDefinition( c.ContentType(), language... )
    return def
}