No, its not possible. Entity should be reference type (enum is value type) and it should have id property. Enum is just set of named constants. There is no id property.
Workaround - you can save integer value in table User
which can be mapped to your enum:
public class User
{
public int UserId { get; set; }
public string Name { get; set; }
public UserType Type { get; set; }
}
public enum UserType
{
Administrator = 1,
Operator = 2,
Consultor = 3
}
If you are using EF 4 then you should create integer property in User class for mapping to database column, and enum property which is not mapped but calculated via integer property:
[Column("UserType")]
public int UserTypeValue { get; set; }
[NotMapped]
public UserType Type
{
get { return (UserType) UserTypeValue;
set { UserTypeValue = (int)value;
}