public static string IdentCommand(this IDevFrameworkDataObject fsEntity)
        {
            var selectClause = string.Format("SELECT {0} AS ROWIDCOL, {1} AS FSROWVERSION ",
                                             fsEntity.GetVirtualColumnNameOnPropertyName("ROWID"),
                                             fsEntity.GetVirtualColumnNameOnPropertyName("ROWVERSION"));

            return(selectClause + fsEntity.QueryInfo.FromClause + fsEntity.QueryInfo.WhereClause + fsEntity.QueryInfo.OrderByClause);
        }
        public static string PK(this IDevFrameworkDataObject fsEntity)
        {
            var pkProperties = new string[fsEntity.GetPKProperties()
                                          .Count];

            fsEntity.GetPKProperties()
            .CopyTo(pkProperties, 0);

            return(string.Join("|", pkProperties.Select(pk => fsEntity.GetProperty(pk)
                                                        .ToString())));
        }
 public static string RowIdAsString(this IDevFrameworkDataObject fsEntity)
 {
     return(fsEntity.FSRowId()
            .ToString());
 }
 public static FSSystemGuid FSRowId(this IDevFrameworkDataObject fsEntity)
 {
     return((FSSystemGuid)fsEntity.GetProperty("ROWID"));
 }
 public static long RowVersionAsLong(this IDevFrameworkDataObject fsEntity)
 {
     return((FSlong)fsEntity.GetProperty("ROWVERSION"));
 }