versioning

MVC.NET milliseconds get lost when using Html.hidden on a DateTime LastUpdated column for version tracking

扶醉桌前 提交于 2019-12-01 04:58:07
Question in short: How tot do this in MVC.NET? Question in long version: Im trying to use a DateTime column in a SQL Table for version tracking (this in itself is proposed as a solution to re-attaching a Linq2Sql data class after being passedback by a editview for the table) But now i get 'row not found or changed'-exception. on the ctx.submit: ctx.appointments.Attach(appointment,true); ctx.SubmitChanges(); where ctx is my Linq datacontext, appointments my table, and appointment the appointment object i try to attach.. Ive setup the appointments table as sugested here This problem was also

IExtensibleDataObject usage in clients

落爺英雄遲暮 提交于 2019-12-01 03:54:40
I have converted my web service to wcf service which has some datacontracts. As a best practice it is mentioned and advisable that the DataContracts should inherit from IExtensibleDataObject. I get the point that in case of addition or removal of datamembers, IExtensibleDataObject is helpful. But i am not able to get how will the clients access removed datamembers. Here is my code: [ServiceContract(Namespace = "http://mycompany.com/2010/08/")] public class MyWebService { [OperationContract] public Employee Add(Employee emp) { // Some Processing } } [DataContract(Name = "Employee", Namespace =

Is platform enforced versioning mechanism most sorely needed feature of java?

只谈情不闲聊 提交于 2019-12-01 03:51:17
As developer, I am often interested in new language feature that can make your life easier. For example, java 5 brought generics and annotations to the language, features that can definitely boost your productivity. However, when I look back at close to a decade working on java platform, I find that the versioning related problems are the biggest culprit of unproductive and needlessly spent effort. Hours and hours of looking for the correct version of the jar, trying to reconcile some versioning conflict, upgrading dependent libraries etc. When I started working in java, things were not that

NHibernate filter collection

只愿长相守 提交于 2019-12-01 03:39:28
问题 Using NHibernate I want to filter a collection in a class to contain ONLY a subset of possible objects. Below I am including a sample table data to help explain. I can find no way to do this using NHibernate. Table:DataObject DataObjectId(PK) / Name / CurrentVersion 11 "data.txt" 2 12 "info.txt" 3 Table:DataObjectVersion Id / Comment / VersionNumber / DataObjectId(FK) 31 "Genesis" 1 11 <= Ignore this object 32 "Changed data" 2 11 <= Get this object 34 "Genesis" 1 12 <= Ignore this object 35

Generating version number in MSBuild

泪湿孤枕 提交于 2019-12-01 03:23:33
问题 We have a C# solution with a WiX installer and an MSBuild build script. We're in the process of migrating from SVN to Git. As the fourth part of our version number, we want something that ascends with each build. Until now, we've used the SVN revision number for that. The MSBuild script defines a ProductVersion property, which included the SVN revision number as the final of the four numbers of the build version. However, we can't use that anymore, as we won't be using SVN anymore. I've been

IExtensibleDataObject usage in clients

爷,独闯天下 提交于 2019-12-01 01:15:57
问题 I have converted my web service to wcf service which has some datacontracts. As a best practice it is mentioned and advisable that the DataContracts should inherit from IExtensibleDataObject. I get the point that in case of addition or removal of datamembers, IExtensibleDataObject is helpful. But i am not able to get how will the clients access removed datamembers. Here is my code: [ServiceContract(Namespace = "http://mycompany.com/2010/08/")] public class MyWebService { [OperationContract]

Is platform enforced versioning mechanism most sorely needed feature of java?

試著忘記壹切 提交于 2019-12-01 00:43:36
问题 As developer, I am often interested in new language feature that can make your life easier. For example, java 5 brought generics and annotations to the language, features that can definitely boost your productivity. However, when I look back at close to a decade working on java platform, I find that the versioning related problems are the biggest culprit of unproductive and needlessly spent effort. Hours and hours of looking for the correct version of the jar, trying to reconcile some

What should go in the 'default' branch of a Hg repository? [closed]

空扰寡人 提交于 2019-11-30 21:38:06
In large Libre Source software projects, versioned with Mercurial or similar DVCS tools, which of the following is considered to be more conventional: Keeping the latest "stable" version of the software in the default branch. Tagging each release in default so you know which revision got packaged up as a download. Merging patches into default as soon as they are tested. Keeping new features, etc. in named branches to be merged into default on the next release. Keeping each release in a named branch, or similar. Using default to keep bleeding-edge code that's only intended to be run by

Looking for solution for database versioning

一世执手 提交于 2019-11-30 19:15:06
Problem description: In our project we have one "production database" and many "devs". We want to know how we can manage and install the changes. We already have some procedures but it takes a lot of time and sometimes causes errors. We can't lose data - so we can't use "drop table". We can only use "alter table". Our actual "db versioning procedure" is like this: We have a table named [actual_version] that contains the actual version of the installed db schema We have a file named "changes_script.sql" that contains all database changes - this file is stored on SVN When a developer wants to

Comparing version number strings (major, minor, revision, beta)

旧街凉风 提交于 2019-11-30 18:16:01
I have an application that communicates with the firmware of a device. As there are changes to the firmware, it is versioned with the format {major}.{minor}.{revision}[beta[{beta}]] . To give you a few examples, the current version is 0.4.7beta which will be followed by 0.4.7beta2 and occasionally 0.4.7 , followed by 0.4.8beta . The versioning format of the firmware is unfortunately not under my control, so I can not change it. I need a way of comparing firmwares with each other. Basically, I need a function boolean isFirmwareNewer(String testFW, String baseFW); What I did so far was to