protected List <AttributeDescriptor> CreateAttributeDescriptors() { var result = new List <AttributeDescriptor>(); result.Add(AttributeDescriptor.ForInteger("remoteId", this)); result.Add(AttributeDescriptor.ForDate("createdDate", this)); result.Add(AttributeDescriptor.ForDate("lastChangedDate", this)); result.Add(AttributeDescriptor.ForDate("createdBy", this, typeof(ApplicationIdentity))); result.Add(AttributeDescriptor.ForDate("lastChangBy", this, typeof(ApplicationIdentity))); result.Add(AttributeDescriptor.ForInteger("optimisticLockVersion", this)); return(result); }
public List <AttributeDescriptor> CreateAttributeDescriptors() { return(new List <AttributeDescriptor> { AttributeDescriptor.ForInteger("remoteId", GetType()), AttributeDescriptor.ForDate("createdDate", GetType()), AttributeDescriptor.ForDate("lastChangedDate", GetType()), AttributeDescriptor.ForString("createdBy", GetType()), AttributeDescriptor.ForString("lastChangedBy", GetType()), AttributeDescriptor.ForInteger("optimisticLockVersion", GetType()) }); }
public static List <AttributeDescriptor> CreateAttributeDescriptors() { var result = new List <AttributeDescriptor> { AttributeDescriptor.ForInteger("remoteId", typeof(Client)), AttributeDescriptor.ForDate("createdDate", typeof(Client)), AttributeDescriptor.ForDate("lastChangedDate", typeof(Client)), AttributeDescriptor.ForSomething("createdBy", typeof(Client), typeof(User), typeof(RemoteUser)), AttributeDescriptor.ForSomething("lastChangedBy", typeof(Client), typeof(User), typeof(RemoteUser)), AttributeDescriptor.ForInteger("optimisticLockVersion", typeof(Client)), }; return(result); }
protected List <AttributeDescriptor> CreateAttributeDescriptors() { List <AttributeDescriptor> result = new List <AttributeDescriptor>(); //result.Add(new DefaultDescriptor("remoteId", GetClass(), typeof(int))); //result.Add(new DefaultDescriptor("createdDate", GetClass(), typeof(DateTime))); //result.Add(new DefaultDescriptor("lastChangedDate", GetClass(), typeof(DateTime))); //result.Add(new ReferenceDescriptor("createdBy", GetClass(), typeof(User))); //result.Add(new ReferenceDescriptor("lastChangedBy", GetClass(), typeof(User))); //result.Add(new DefaultDescriptor("optimisticLockVersion", GetClass(), typeof(int))); result.Add(AttributeDescriptor.ForInteger("remoteId", GetClass())); result.Add(AttributeDescriptor.ForDate("createdDate", GetClass())); result.Add(AttributeDescriptor.ForDate("lastChangedDate", this.GetClass())); result.Add(AttributeDescriptor.ForUser("createdBy", this.GetClass())); result.Add(AttributeDescriptor.ForUser("lastChangedBy", this.GetClass())); result.Add(AttributeDescriptor.ForInteger("optimisticLockVersion", this.GetClass())); return(result); }