Menu
Cutty
  • Chryslers
  • Lutherie
  • YLSNED
  • About
Cutty

Author: Iain 'Cutty' Carlin

SqLite Auto-increment fields in Entity Framework

Posted on December 11, 2019December 11, 2019 by Iain 'Cutty' Carlin

By default, Scaffolding a table with an auto-increment field adds:

.ValueGeneratedNever();

To the field in the Model Builder. This will cause an automatic value NOT to be generated. This needs to be removed.

Also, we need to add:

        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int? TemplateId { get; set; }

To the item – and ensure it is a nullable int. https://docs.microsoft.com/en-us/ef/core/modeling/generated-properties …

+

Interface the virtual abstract

Posted on November 29, 2019December 1, 2019 by Iain 'Cutty' Carlin

I’ve researched this several times now and keep forgetting the results. So, putting it here to record it for next time. What is the difference and usage for c# interfaces, virtual and abstract classes and methods? And where do you use them?

Interface

An interface specifies a contract.

  • Interfaces contain only declarations of the members in the class but cannot contain implementation details.
  • Interfaces do not have constructors
  • All methods in an interface MUST be implemented by the class
  • It only contains public access modifier because everything in the interface is public.
  • A child class can inherit from multiple interfaces (multiple inheritance)
  • [Note that properties in C# are in effect a method, so you can specify a property in an interface, but the property needs to be implemented by the derived class].
…
+

If you’re going to be a dick, expect to be treated like one!

Posted on November 21, 2019December 1, 2019 by Iain 'Cutty' Carlin

Don’t get me wrong, I know I’m a grumpy old bastard sometimes, and one of my character flaws is not admitting I’m wrong. But in the face of irrefutable proof that I’m wrong, I’ll most often accede the point.

However, one thing that gets my goat is when someone says something that is clearly wrong, is then proven wrong by stating the facts, then goes on to continue to rant about being treated disrespectfully rather than admit they were wrong in the first place!

If you’re going to act like a dick, expect to be treated with the same amount of respect as you gave!…

+

The next project

Posted on November 8, 2019December 1, 2019 by Iain 'Cutty' Carlin

This next build is taking me a long time to do. Started it in February 2018 while I was still doing the instrument making course at TAFE. My goal was and is to make the entire thing at home, which I have achieved so far. It’s taken so long because of a) lack of motivation and time and b) I have had to build lots of jigs and buy more tools in order to complete the job.

As of October 2019, the sound box is now complete. Papua New Guinea Rosewood back and sides with Silver Quandong top. The bindings and end graft are Tassie Blackwood and maple.…

+

A cloud mind…

Posted on November 8, 2019December 1, 2019 by Iain 'Cutty' Carlin

Today’s Dilbert calendar strip got me thinking…imagine if it were possible to upload the contents of your brain for offline storage.

Wouldn’t it be great to have a backup of all your thoughts, memories and things you have learned over the years? Just like when your hard drive crashes on your computer, you might be able to restore your brain to a point in time. How useful would that be for people who get dementia or Alzheimers?

Even if you couldn’t restore to your biological brain mass, perhaps it might be possible to access those memories offline. In the Chrysler Club we often lament the loss of knowledge as former workers at Chrysler pass away and that history is gone forever.…

+

Quote of the Day

Posted on November 6, 2019November 6, 2019 by Iain 'Cutty' Carlin

“Life a good life. If there are gods and they are just, then they will not care how devout you have been, but will welcome you based on the virtues you have lived by. If there are gods, but unjust, then you should not want to worship them. If there are no gods, then you will be gone, but will have lived a noble life that will live on in the memories of your loved ones.”  – Marcus Aurelius (Roman Emperor and Philosopher)…

+

Lichty Guitars

Posted on January 22, 2019December 1, 2019 by Iain 'Cutty' Carlin

Listening to the Luthier on Luthier podcast this morning about Jay Lichty and his guitars. Interesting the way they set up their business and ability to pick guitars based on tone and price. Some great designs too. lichtyguitars.com…

+

Configuring SSIS on SQL 2017

Posted on February 14, 2018December 1, 2019 by Iain 'Cutty' Carlin

Not as easy as you would think, once installed, the service wouldn’t start, then I couldn’t log on (Access Denied) then I couldn’t connect remotely.

  • Install and Configure DCOM: https://docs.microsoft.com/en-us/sql/integration-services/service/integration-services-service-ssis-service
  • Configure Firewall to allow RPC: http://slavasql.blogspot.com.au/2016/07/ssis-rpc-server-is-unavailable-error.html
  • Create SSIS Catalog: https://technet.microsoft.com/en-us/library/gg471509(v=sql.110).aspx
  • Run SSIS Package with Powershell: https://docs.microsoft.com/en-us/sql/integration-services/ssis-quickstart-run-powershell

 …

+

SSIS Toolbox missing in Visual Studio 2017

Posted on November 2, 2017 by Iain 'Cutty' Carlin

I have installed the Data-Tier Application Framework and SQL Server Data Tools for VS 2017 . I created a solution then returned to it a week later and the SSIS toolbox had disappeared.

I opened the toolbox window using View -> Toolbox but it was empty.

To get the SSIS toolbox back, right-click on the SSIS design surface in the project and select SSIS Toolbox – hey presto! it reappears.

 …

+

Jim Redgate Guitars

Posted on August 28, 2017March 22, 2021 by Iain 'Cutty' Carlin

Interesting article about SA man Jim Redgate making world class guitars right here in Port Noarlunga: https://www.adelaidenow.com.au/ipad/making-music/news-story/03af6084a69841a2009fbde62e9dfc25

(He also happens to share an interest in Chrysler products!)

http://www.redgateguitars.com.au/…

+
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 9
  • Next

Recent Posts

  • Lawson – A life in words and music
  • Instrument Making Course
  • Jigging, plating and sanding
  • A building block….
  • Fridays are lutherie days!

Categories

  • Chryslers (1)
  • Cutty's Blog (8)
  • Lutherie (38)
  • You Learn Something New Every Day (40)
©2023 Cutty | Powered by WordPress & Superb Themes